2
0

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

@@ -11,7 +11,7 @@
class UserIp < ApplicationRecord
self.primary_key = :user_id
belongs_to :user, foreign_key: :user_id
belongs_to :user
def readonly?
true