Autofix Rubocop Rails/RedundantForeignKey (#23731)
This commit is contained in:
parent
8ef09813a2
commit
597767a9f7
8 changed files with 8 additions and 20 deletions
|
@ -62,7 +62,7 @@ class BackfillAdminActionLogs < ActiveRecord::Migration[6.1]
|
|||
# Cannot use usual polymorphic support because of namespacing issues
|
||||
belongs_to :status, foreign_key: :target_id
|
||||
belongs_to :account, foreign_key: :target_id
|
||||
belongs_to :user, foreign_key: :user_id
|
||||
belongs_to :user
|
||||
belongs_to :domain_block, foreign_key: :target_id
|
||||
belongs_to :domain_allow, foreign_key: :target_id
|
||||
belongs_to :email_domain_block, foreign_key: :target_id
|
||||
|
|
|
@ -62,7 +62,7 @@ class BackfillAdminActionLogsAgain < ActiveRecord::Migration[6.1]
|
|||
# Cannot use usual polymorphic support because of namespacing issues
|
||||
belongs_to :status, foreign_key: :target_id
|
||||
belongs_to :account, foreign_key: :target_id
|
||||
belongs_to :user, foreign_key: :user_id
|
||||
belongs_to :user
|
||||
belongs_to :domain_block, foreign_key: :target_id
|
||||
belongs_to :domain_allow, foreign_key: :target_id
|
||||
belongs_to :email_domain_block, foreign_key: :target_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue