Add filters to index page

This commit is contained in:
Maximilian Grundke
2017-10-16 11:45:23 +02:00
parent 74a4313949
commit d162f78b67
3 changed files with 12 additions and 2 deletions

View File

@ -2,10 +2,11 @@ class UserExerciseFeedback < ActiveRecord::Base
include Creation
belongs_to :exercise
has_one :execution_environment, through: :exercise
validates :user_id, uniqueness: { scope: [:exercise_id, :user_type] }
def to_s
"User Exercise Feedback"
end
end
end