From 5dedb1352f274113e97a2554d9249e56a865a4bf Mon Sep 17 00:00:00 2001 From: Xinhui Date: Thu, 29 Sep 2016 15:25:37 +0200 Subject: Add started_at, ended_at, status to stop_area_referential_syncs Refs #1710 --- .../20160909093322_create_stop_area_sync_operations.rb | 12 ------------ .../20160929131958_drop_stop_area_sync_operations.rb | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 db/migrate/20160909093322_create_stop_area_sync_operations.rb create mode 100644 db/migrate/20160929131958_drop_stop_area_sync_operations.rb (limited to 'db/migrate') diff --git a/db/migrate/20160909093322_create_stop_area_sync_operations.rb b/db/migrate/20160909093322_create_stop_area_sync_operations.rb deleted file mode 100644 index fef4f5e1f..000000000 --- a/db/migrate/20160909093322_create_stop_area_sync_operations.rb +++ /dev/null @@ -1,12 +0,0 @@ -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 diff --git a/db/migrate/20160929131958_drop_stop_area_sync_operations.rb b/db/migrate/20160929131958_drop_stop_area_sync_operations.rb new file mode 100644 index 000000000..859d20b28 --- /dev/null +++ b/db/migrate/20160929131958_drop_stop_area_sync_operations.rb @@ -0,0 +1,15 @@ +class DropStopAreaSyncOperations < ActiveRecord::Migration + def up + drop_table :stop_area_sync_operations if table_exists?(:stop_area_sync_operations) + end + + def down + 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 -- cgit v1.2.3