aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorXinhui2016-09-09 12:48:27 +0200
committerXinhui2016-09-09 12:48:49 +0200
commitc78802969f4d45028d3854198e311530813ae73b (patch)
tree720f119123b051fc609a534c54482c924c65760e /db/migrate
parenta40c2468c762f039061e71f2e2ba03358e5183ec (diff)
downloadchouette-core-c78802969f4d45028d3854198e311530813ae73b.tar.bz2
Model StopAreaReferentialSync
Refs #1609
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160909092812_create_stop_area_referential_syncs.rb9
-rw-r--r--db/migrate/20160909093322_create_stop_area_sync_operations.rb12
2 files changed, 21 insertions, 0 deletions
diff --git a/db/migrate/20160909092812_create_stop_area_referential_syncs.rb b/db/migrate/20160909092812_create_stop_area_referential_syncs.rb
new file mode 100644
index 000000000..eb68f662b
--- /dev/null
+++ b/db/migrate/20160909092812_create_stop_area_referential_syncs.rb
@@ -0,0 +1,9 @@
+class CreateStopAreaReferentialSyncs < ActiveRecord::Migration
+ def change
+ create_table :stop_area_referential_syncs do |t|
+ t.references :stop_area_referential, index: true
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20160909093322_create_stop_area_sync_operations.rb b/db/migrate/20160909093322_create_stop_area_sync_operations.rb
new file mode 100644
index 000000000..fef4f5e1f
--- /dev/null
+++ b/db/migrate/20160909093322_create_stop_area_sync_operations.rb
@@ -0,0 +1,12 @@
+class CreateStopAreaSyncOperations < ActiveRecord::Migration
+ def change
+ create_table :stop_area_sync_operations do |t|
+ t.string :status
+ t.references :stop_area_referential_sync
+ t.string :message
+
+ t.timestamps
+ end
+ add_index :stop_area_sync_operations, :stop_area_referential_sync_id, name: 'stop_area_referential_sync_id'
+ end
+end