Skip to content

Commit

Permalink
fix user <-> team association
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob committed Sep 6, 2024
1 parent 2d9a5b8 commit a387761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/dummy/app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class User < ApplicationRecord
has_many :comments
has_many :team_memberships
has_and_belongs_to_many :projects, inverse_of: :users
has_and_belongs_to_many :teams, join_table: :team_memberships, inverse_of: :admin
has_many :teams, through: :team_memberships, inverse_of: :admin

has_one_attached :cv

Expand Down

0 comments on commit a387761

Please sign in to comment.