Add exercise feedback page for pair programming study
This commit is contained in:

committed by
Sebastian Serth

parent
79422225a8
commit
4b90a2a3c5
18
app/models/pair_programming_exercise_feedback.rb
Normal file
18
app/models/pair_programming_exercise_feedback.rb
Normal file
@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PairProgrammingExerciseFeedback < ApplicationRecord
|
||||
include Creation
|
||||
|
||||
belongs_to :exercise
|
||||
belongs_to :submission
|
||||
belongs_to :study_group
|
||||
belongs_to :programming_group, optional: true
|
||||
has_one :execution_environment, through: :exercise
|
||||
|
||||
scope :intermediate, -> { where.not(normalized_score: 1.00) }
|
||||
scope :final, -> { where(normalized_score: 1.00) }
|
||||
|
||||
def to_s
|
||||
'Pair Programming Exercise Feedback'
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user