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.
educoder/app/models/member.rb

9 lines
228 B

6 years ago
class Member < ApplicationRecord
belongs_to :user
6 years ago
belongs_to :course, optional: true
belongs_to :project, optional: true
has_many :member_roles, dependent: :destroy
has_many :roles, through: :member_roles
6 years ago
end