aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20160818090010_add_message_to_line_sync_operation.rb5
-rw-r--r--db/migrate/20160927085857_drop_line_sync_operations.rb (renamed from db/migrate/20160627124541_create_line_sync_operations.rb)8
2 files changed, 6 insertions, 7 deletions
diff --git a/db/migrate/20160818090010_add_message_to_line_sync_operation.rb b/db/migrate/20160818090010_add_message_to_line_sync_operation.rb
deleted file mode 100644
index 37b3e5af6..000000000
--- a/db/migrate/20160818090010_add_message_to_line_sync_operation.rb
+++ /dev/null
@@ -1,5 +0,0 @@
-class AddMessageToLineSyncOperation < ActiveRecord::Migration
- def change
- add_column :line_sync_operations, :message, :string
- end
-end
diff --git a/db/migrate/20160627124541_create_line_sync_operations.rb b/db/migrate/20160927085857_drop_line_sync_operations.rb
index ec32cf4ac..44e774604 100644
--- a/db/migrate/20160627124541_create_line_sync_operations.rb
+++ b/db/migrate/20160927085857_drop_line_sync_operations.rb
@@ -1,5 +1,9 @@
-class CreateLineSyncOperations < ActiveRecord::Migration
- def change
+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