Skip to content

Commit 3445ed5

Browse files
committed
Update user.rb
1 parent 0ac0a84 commit 3445ed5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/internal/app/models/user.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class User < ::ActiveRecord::Base
22
belongs_to :advisor, optional: true
33
belongs_to :manager, optional: true
4-
has_many :user_organizations, dependent: :destroy, class_name: "::HasHelpers::UserOrganization"
5-
has_many :organizations, class_name: "::HasHelpers::Organization", through: :user_organizations
4+
has_many :user_organizations, dependent: :destroy, class_name: "::HasHelpers::UserOrganization", inverse_of: :user
5+
has_many :organizations, class_name: "::HasHelpers::Organization", through: :user_organizations, inverse_of: :users
66

77
def hydrate
88
end

0 commit comments

Comments
 (0)