Autofix Rubocop Rails/RedundantForeignKey (#23731)
This commit is contained in:
parent
8ef09813a2
commit
597767a9f7
8 changed files with 8 additions and 20 deletions
|
@ -32,7 +32,7 @@ class Report < ApplicationRecord
|
|||
belongs_to :action_taken_by_account, class_name: 'Account', optional: true
|
||||
belongs_to :assigned_account, class_name: 'Account', optional: true
|
||||
|
||||
has_many :notes, class_name: 'ReportNote', foreign_key: :report_id, inverse_of: :report, dependent: :destroy
|
||||
has_many :notes, class_name: 'ReportNote', inverse_of: :report, dependent: :destroy
|
||||
has_many :notifications, as: :activity, dependent: :destroy
|
||||
|
||||
scope :unresolved, -> { where(action_taken_at: nil) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue