diff options
| author | Xinhui | 2016-09-29 15:25:37 +0200 | 
|---|---|---|
| committer | Xinhui | 2016-09-29 15:28:47 +0200 | 
| commit | 5dedb1352f274113e97a2554d9249e56a865a4bf (patch) | |
| tree | 5ae8317d400795312f485433c0ebd47bd3c5a71f /db/migrate | |
| parent | 98a5b302923bf369c14e35a506af94b84e32c7ee (diff) | |
| download | chouette-core-5dedb1352f274113e97a2554d9249e56a865a4bf.tar.bz2 | |
Add started_at, ended_at, status to stop_area_referential_syncs
Refs #1710
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20160929131958_drop_stop_area_sync_operations.rb (renamed from db/migrate/20160909093322_create_stop_area_sync_operations.rb) | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/db/migrate/20160909093322_create_stop_area_sync_operations.rb b/db/migrate/20160929131958_drop_stop_area_sync_operations.rb index fef4f5e1f..859d20b28 100644 --- a/db/migrate/20160909093322_create_stop_area_sync_operations.rb +++ b/db/migrate/20160929131958_drop_stop_area_sync_operations.rb @@ -1,10 +1,13 @@ -class CreateStopAreaSyncOperations < ActiveRecord::Migration -  def change +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'  | 
