diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-19 20:19:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 02:19:40 +0100 |
commit | 597767a9f7ca846be9fbca826aba362f8387a60f (patch) | |
tree | c25188e552be7112fecc4654c0e25ed2ebd4768d /app/models/status.rb | |
parent | 8ef09813a2b46d99fe9c7e39beba2a68052c17d1 (diff) |
Autofix Rubocop Rails/RedundantForeignKey (#23731)
Diffstat (limited to 'app/models/status.rb')
-rw-r--r-- | app/models/status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 102dfa994..e0ad29103 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -53,7 +53,7 @@ class Status < ApplicationRecord belongs_to :application, class_name: 'Doorkeeper::Application', optional: true belongs_to :account, inverse_of: :statuses - belongs_to :in_reply_to_account, foreign_key: 'in_reply_to_account_id', class_name: 'Account', optional: true + belongs_to :in_reply_to_account, class_name: 'Account', optional: true belongs_to :conversation, optional: true belongs_to :preloadable_poll, class_name: 'Poll', foreign_key: 'poll_id', optional: true |