Add StudyGroup to RemoteEvaluationMapping

This commit is contained in:
Sebastian Serth
2021-04-26 16:40:34 +02:00
parent 91a0e4a7d5
commit 4958f5b9a9
7 changed files with 20 additions and 2 deletions

View File

@ -5,6 +5,7 @@ class StudyGroup < ApplicationRecord
has_many :external_users, through: :study_group_memberships, source_type: 'ExternalUser', source: :user
has_many :internal_users, through: :study_group_memberships, source_type: 'InternalUser', source: :user
has_many :submissions, dependent: :nullify
has_many :remote_evaluation_mappings, dependent: :nullify
belongs_to :consumer
def users