Autofix Rubocop Rails/RedundantForeignKey (#23731)

This commit is contained in:
Nick Schonning
2023-02-19 20:19:40 -05:00
committed by GitHub
parent 8ef09813a2
commit 597767a9f7
8 changed files with 8 additions and 20 deletions

View File

@ -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) }