remove unnecessary inverse_of

This commit is contained in:
James Smith committed 2025-04-08 16:49:46 +01:00
1 parent 8bcbb15e9c
commit 14b60da89f
1 file changed
+4 -6
+4 -6
View File
@@ -46,17 +46,15 @@ class User < ApplicationRecord
attribute :problem_settings, :json
attribute :file_list_settings, :json
has_many :access_grants,
has_many :access_grants, # rubocop:disable Rails/InverseOf
class_name: "Doorkeeper::AccessGrant",
foreign_key: :resource_owner_id,
dependent: :delete_all,
inverse_of: :resource_owner
dependent: :delete_all
has_many :access_tokens,
has_many :access_tokens, # rubocop:disable Rails/InverseOf
class_name: "Doorkeeper::AccessToken",
foreign_key: :resource_owner_id,
dependent: :delete_all,
inverse_of: :resource_owner
dependent: :delete_all
has_many :oauth_applications,
class_name: "Doorkeeper::Application",