You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
class Member < ApplicationRecord
|
|
|
|
belongs_to :user
|
|
|
|
belongs_to :course, optional: true
|
|
|
|
belongs_to :project, optional: true
|
|
|
|
|
|
|
|
has_many :member_roles, dependent: :destroy
|
|
|
|
has_many :roles, through: :member_roles
|
|
|
|
end
|