aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorAlban Peignier2016-05-05 15:45:19 +0200
committerAlban Peignier2016-05-05 15:45:19 +0200
commit3adb65c09321d6edcec4045be6abeb34fe3bc672 (patch)
tree9c065a0f439e0cd8b8d0dacc4b7a631e92ab6747 /db/migrate
parent89092ca98ba6d1d692871db3e4b46f31dc9336ed (diff)
downloadchouette-core-3adb65c09321d6edcec4045be6abeb34fe3bc672.tar.bz2
Associate StopArea and StopAreaReferential. Refs #812
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160504160504_add_stop_area_referential_to_stop_areas.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20160504160504_add_stop_area_referential_to_stop_areas.rb b/db/migrate/20160504160504_add_stop_area_referential_to_stop_areas.rb
new file mode 100644
index 000000000..2040a8272
--- /dev/null
+++ b/db/migrate/20160504160504_add_stop_area_referential_to_stop_areas.rb
@@ -0,0 +1,6 @@
+class AddStopAreaReferentialToStopAreas < ActiveRecord::Migration
+ def change
+ add_column :stop_areas, :stop_area_referential_id, :integer
+ add_index :stop_areas, :stop_area_referential_id
+ end
+end