diff options
| author | Vlatka Pavisic | 2017-04-05 12:14:25 +0200 |
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-05 12:14:30 +0200 |
| commit | 81f5ee3810fd30f0bccd8a0f33245b0444ebadd9 (patch) | |
| tree | 2c25b2dfab7c2761e033163578d6c33d97e8f391 /db | |
| parent | 1e5a595150f4a90dcf17e0e6cd32728486fb36b8 (diff) | |
| download | chouette-core-81f5ee3810fd30f0bccd8a0f33245b0444ebadd9.tar.bz2 | |
Refs #3036 : Associate RoutingConstraintZone with Route and not Line
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20170404122930_add_route_rm_line_from_routing_constraint_zone.rb | 6 | ||||
| -rw-r--r-- | db/schema.rb | 24 |
2 files changed, 8 insertions, 22 deletions
diff --git a/db/migrate/20170404122930_add_route_rm_line_from_routing_constraint_zone.rb b/db/migrate/20170404122930_add_route_rm_line_from_routing_constraint_zone.rb new file mode 100644 index 000000000..f53c0b503 --- /dev/null +++ b/db/migrate/20170404122930_add_route_rm_line_from_routing_constraint_zone.rb @@ -0,0 +1,6 @@ +class AddRouteRmLineFromRoutingConstraintZone < ActiveRecord::Migration + def change + remove_column :routing_constraint_zones, :line_id, :bigint + add_column :routing_constraint_zones, :route_id, :bigint + end +end diff --git a/db/schema.rb b/db/schema.rb index 479484128..53e3ad57c 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: 20170403155202) do +ActiveRecord::Schema.define(version: 20170404122930) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -165,22 +165,6 @@ ActiveRecord::Schema.define(version: 20170403155202) do add_index "connection_links", ["objectid"], :name => "connection_links_objectid_key", :unique => true - create_table "delayed_jobs", force: true do |t| - t.integer "priority", default: 0 - t.integer "attempts", default: 0 - t.text "handler" - t.text "last_error" - t.datetime "run_at" - t.datetime "locked_at" - t.datetime "failed_at" - t.string "locked_by" - t.string "queue" - t.datetime "created_at" - t.datetime "updated_at" - end - - add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority" - create_table "exports", force: true do |t| t.integer "referential_id", limit: 8 t.string "status" @@ -559,16 +543,14 @@ ActiveRecord::Schema.define(version: 20170403155202) do create_table "routing_constraint_zones", force: true do |t| t.string "name" t.integer "stop_area_ids", array: true - t.integer "line_id", limit: 8 t.datetime "created_at" t.datetime "updated_at" t.string "objectid", null: false t.integer "object_version", limit: 8 t.string "creator_id" + t.integer "route_id", limit: 8 end - add_index "routing_constraint_zones", ["line_id"], :name => "index_routing_constraint_zones_on_line_id" - create_table "routing_constraints_lines", id: false, force: true do |t| t.integer "stop_area_id", limit: 8 t.integer "line_id", limit: 8 @@ -843,8 +825,6 @@ ActiveRecord::Schema.define(version: 20170403155202) do add_index "workbenches", ["stop_area_referential_id"], :name => "index_workbenches_on_stop_area_referential_id" Foreigner.load - add_foreign_key "access_links", "access_points", name: "aclk_acpt_fkey", dependent: :delete - add_foreign_key "group_of_lines_lines", "group_of_lines", name: "groupofline_group_fkey", dependent: :delete add_foreign_key "journey_frequencies", "timebands", name: "journey_frequencies_timeband_id_fk", dependent: :nullify |
