aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate/20160927085857_drop_line_sync_operations.rb
blob: 44e7746047b1f1198501f66abb059dd893a34d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class DropLineSyncOperations < ActiveRecord::Migration
  def up
    drop_table :line_sync_operations if table_exists?(:line_sync_operations)
  end

  def down
    create_table :line_sync_operations do |t|
      t.string :status
      t.references :line_referential_sync, index: true

      t.timestamps
    end
  end
end