aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
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