diff options
| author | Xinhui | 2017-02-03 15:57:12 +0100 |
|---|---|---|
| committer | Xinhui | 2017-02-03 15:57:12 +0100 |
| commit | 25c192b1a5cac1397c73ca029124cbeeda156fa5 (patch) | |
| tree | b343425e81b3951e29c73a50d8202bc883c62169 /db | |
| parent | 871ce4ac1c800f4577b88c64ea9ea9f3d15d5d23 (diff) | |
| download | chouette-core-25c192b1a5cac1397c73ca029124cbeeda156fa5.tar.bz2 | |
Chouette::Line mport secondary_companies
Refs #2490
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20170203144307_rename_secondary_companies_column_from_lines.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/db/migrate/20170203144307_rename_secondary_companies_column_from_lines.rb b/db/migrate/20170203144307_rename_secondary_companies_column_from_lines.rb new file mode 100644 index 000000000..7b78ace63 --- /dev/null +++ b/db/migrate/20170203144307_rename_secondary_companies_column_from_lines.rb @@ -0,0 +1,5 @@ +class RenameSecondaryCompaniesColumnFromLines < ActiveRecord::Migration + def change + rename_column :lines, :secondary_companies_ids, :secondary_company_ids + end +end diff --git a/db/schema.rb b/db/schema.rb index 6beb862fa..217983cdd 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: 20170203094212) do +ActiveRecord::Schema.define(version: 20170203144307) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -347,13 +347,13 @@ ActiveRecord::Schema.define(version: 20170203094212) do t.boolean "deactivated", default: false t.text "import_xml" t.string "transport_submode" - t.integer "secondary_companies_ids", array: true + t.integer "secondary_company_ids", array: true end add_index "lines", ["line_referential_id"], :name => "index_lines_on_line_referential_id" add_index "lines", ["objectid"], :name => "lines_objectid_key", :unique => true add_index "lines", ["registration_number"], :name => "lines_registration_number_key" - add_index "lines", ["secondary_companies_ids"], :name => "index_lines_on_secondary_companies_ids" + add_index "lines", ["secondary_company_ids"], :name => "index_lines_on_secondary_company_ids" create_table "networks", force: true do |t| t.string "objectid", null: false |
