diff options
| author | Alban Peignier | 2016-05-15 10:25:11 +0200 |
|---|---|---|
| committer | Alban Peignier | 2016-05-15 10:25:11 +0200 |
| commit | 297727032a0c1fddfbb9d8864deda1ec24ea36f6 (patch) | |
| tree | 62868de1770546b748b5fec3c59e806cbe5c8f21 /db | |
| parent | affbacfcd955230f66badb261dcc462cca9cd0b9 (diff) | |
| download | chouette-core-297727032a0c1fddfbb9d8864deda1ec24ea36f6.tar.bz2 | |
Associate StopAreaReferential to Referential. Create ReferentialStopAreas to manage lines in Referential. Refs #822
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20160515072316_add_stop_area_referential_to_referential.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/db/migrate/20160515072316_add_stop_area_referential_to_referential.rb b/db/migrate/20160515072316_add_stop_area_referential_to_referential.rb new file mode 100644 index 000000000..10cb34922 --- /dev/null +++ b/db/migrate/20160515072316_add_stop_area_referential_to_referential.rb @@ -0,0 +1,5 @@ +class AddStopAreaReferentialToReferential < ActiveRecord::Migration + def change + add_reference :referentials, :stop_area_referential + end +end diff --git a/db/schema.rb b/db/schema.rb index 38442ae7b..51b6b995d 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: 20160513180957) do +ActiveRecord::Schema.define(version: 20160515072316) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -378,12 +378,13 @@ ActiveRecord::Schema.define(version: 20160513180957) do t.string "projection_type" t.string "time_zone" t.string "bounds" - t.integer "organisation_id", limit: 8 + t.integer "organisation_id", limit: 8 t.text "geographical_bounds" - t.integer "user_id", limit: 8 + t.integer "user_id", limit: 8 t.string "user_name" t.string "data_format" t.integer "line_referential_id" + t.integer "stop_area_referential_id" end create_table "route_sections", force: true do |t| |
