From fab48ee96dd9f7bdbac5fde3307e29d79fe205c3 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 19 Sep 2021 03:40:19 +0200 Subject: [PATCH] Also need to exclude account_migration from persons reference Also backported from #7660 --- app/models/account_migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/account_migration.rb b/app/models/account_migration.rb index 0be2ae932..f2b78f85f 100644 --- a/app/models/account_migration.rb +++ b/app/models/account_migration.rb @@ -128,7 +128,7 @@ class AccountMigration < ApplicationRecord def person_references references = Person.reflections.reject {|key, _| - %w[profile owner notifications pod].include?(key) + %w[profile owner notifications pod account_migration].include?(key) } references.map {|key, value|