about summary refs log tree commit diff
path: root/app/models/follow_recommendation.rb
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-19 20:19:40 -0500
committerGitHub <noreply@github.com>2023-02-20 02:19:40 +0100
commit597767a9f7ca846be9fbca826aba362f8387a60f (patch)
treec25188e552be7112fecc4654c0e25ed2ebd4768d /app/models/follow_recommendation.rb
parent8ef09813a2b46d99fe9c7e39beba2a68052c17d1 (diff)
Autofix Rubocop Rails/RedundantForeignKey (#23731)
Diffstat (limited to 'app/models/follow_recommendation.rb')
-rw-r--r--app/models/follow_recommendation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/follow_recommendation.rb b/app/models/follow_recommendation.rb
index e552b5a88..501f8ecb6 100644
--- a/app/models/follow_recommendation.rb
+++ b/app/models/follow_recommendation.rb
@@ -12,7 +12,7 @@ class FollowRecommendation < ApplicationRecord
   self.primary_key = :account_id
 
   belongs_to :account_summary, foreign_key: :account_id
-  belongs_to :account, foreign_key: :account_id
+  belongs_to :account
 
   scope :localized, ->(locale) { joins(:account_summary).merge(AccountSummary.localized(locale)) }