From 1c78d600d3bac761869b089736d3348033ab4416 Mon Sep 17 00:00:00 2001 From: ThibG Date: Thu, 30 May 2019 21:35:29 +0200 Subject: Fix old migrations failing because of new version of `strong_migrations` (#10904) --- db/migrate/20171005102658_create_account_moderation_notes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/migrate/20171005102658_create_account_moderation_notes.rb') diff --git a/db/migrate/20171005102658_create_account_moderation_notes.rb b/db/migrate/20171005102658_create_account_moderation_notes.rb index 974ed9940..010b94586 100644 --- a/db/migrate/20171005102658_create_account_moderation_notes.rb +++ b/db/migrate/20171005102658_create_account_moderation_notes.rb @@ -8,6 +8,6 @@ class CreateAccountModerationNotes < ActiveRecord::Migration[5.1] t.timestamps end - add_foreign_key :account_moderation_notes, :accounts, column: :target_account_id + safety_assured { add_foreign_key :account_moderation_notes, :accounts, column: :target_account_id } end end -- cgit