Skip to content

Commit b04dfb6

Browse files
committed
There is no inverse relationship, sate rubocop
1 parent 181bb80 commit b04dfb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/partner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Partner < ApplicationRecord
4444
has_many :families, dependent: :destroy, class_name: 'Partners::Family'
4545
has_many :children, through: :families, class_name: 'Partners::Child'
4646
has_many :authorized_family_members, through: :families, class_name: 'Partners::AuthorizedFamilyMember'
47-
has_one :default_storage_location, class_name: 'StorageLocation', dependent: :nullify, foreign_key: 'id', primary_key: 'default_storage_location_id'
47+
has_one :default_storage_location, class_name: 'StorageLocation', dependent: :nullify, foreign_key: 'id', primary_key: 'default_storage_location_id', inverse_of: false
4848

4949
has_many_attached :documents
5050

0 commit comments

Comments
 (0)