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 CompetitionTeam < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :competition
|
|
|
|
has_many :team_members, dependent: :destroy
|
|
has_many :members, -> { without_teachers }, class_name: 'TeamMember'
|
|
has_many :teachers, -> { only_teachers }, class_name: 'TeamMember'
|
|
end |