aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorTeddy Wing2017-09-25 15:13:10 +0200
committerTeddy Wing2017-09-25 15:13:10 +0200
commitfa7a8aa5bbc5eea97f89bbab662303e5b5403231 (patch)
treea2ee40704d144d21466297309ea0cf27279090c6 /db
parent4e878caf4170f9be96f0c854761ed279b057e91c (diff)
downloadchouette-core-fa7a8aa5bbc5eea97f89bbab662303e5b5403231.tar.bz2
Add `output_id` column to `workbenches`
This column will be a reference to a `ReferentialSuite`. Going forward, all `Workbench`es will be required to have an associated `ReferentialSuite`. Refs #3520
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20170925123159_add_output_to_workbenches.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20170925123159_add_output_to_workbenches.rb b/db/migrate/20170925123159_add_output_to_workbenches.rb
new file mode 100644
index 000000000..d6aea96a0
--- /dev/null
+++ b/db/migrate/20170925123159_add_output_to_workbenches.rb
@@ -0,0 +1,5 @@
+class AddOutputToWorkbenches < ActiveRecord::Migration
+ def change
+ add_column :workbenches, :output_id, :bigint, index: true
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 89f002aee..e7efce531 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20170922165315) do
+ActiveRecord::Schema.define(version: 20170925123159) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -969,6 +969,7 @@ ActiveRecord::Schema.define(version: 20170922165315) do
t.datetime "updated_at"
t.integer "line_referential_id", limit: 8
t.integer "stop_area_referential_id", limit: 8
+ t.integer "output_id", limit: 8
end
add_index "workbenches", ["line_referential_id"], name: "index_workbenches_on_line_referential_id", using: :btree