about summary refs log tree commit diff
path: root/db/migrate/20191031163205_change_list_account_follow_nullable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20191031163205_change_list_account_follow_nullable.rb')
-rw-r--r--db/migrate/20191031163205_change_list_account_follow_nullable.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/migrate/20191031163205_change_list_account_follow_nullable.rb b/db/migrate/20191031163205_change_list_account_follow_nullable.rb
index ff8911546..65ff93365 100644
--- a/db/migrate/20191031163205_change_list_account_follow_nullable.rb
+++ b/db/migrate/20191031163205_change_list_account_follow_nullable.rb
@@ -1,5 +1,7 @@
 class ChangeListAccountFollowNullable < ActiveRecord::Migration[5.1]
   def change
-    change_column_null :list_accounts, :follow_id, true
+    safety_assured do
+      change_column_null :list_accounts, :follow_id, true
+    end
   end
 end