Also need to exclude account_migration from persons reference

Also backported from #7660
This commit is contained in:
Benjamin Neff 2021-09-19 03:40:19 +02:00
parent b8ea120ff2
commit fab48ee96d
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -128,7 +128,7 @@ class AccountMigration < ApplicationRecord
def person_references def person_references
references = Person.reflections.reject {|key, _| 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| references.map {|key, value|