about summary refs log tree commit diff
path: root/db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-05-30 21:35:29 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-05-30 22:35:29 +0300
commit1c78d600d3bac761869b089736d3348033ab4416 (patch)
treec2993f86ca2401fae1827217d8c538aed0199490 /db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb
parentacc74bed120812d92f9a63332ffd476c0c8a9f77 (diff)
Fix old migrations failing because of new version of `strong_migrations` (#10904)
Diffstat (limited to 'db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb')
-rw-r--r--db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb b/db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb
index fc1e1ab91..cdcd15934 100644
--- a/db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb
+++ b/db/migrate/20171010023049_add_foreign_key_to_account_moderation_notes.rb
@@ -1,5 +1,5 @@
 class AddForeignKeyToAccountModerationNotes < ActiveRecord::Migration[5.1]
   def change
-    add_foreign_key :account_moderation_notes, :accounts
+    safety_assured { add_foreign_key :account_moderation_notes, :accounts }
   end
 end