Remove PairProgrammingExerciseFeedback
* Remove view, controller, routes & policy for PairProgrammingExerciseFeedback * Keep model & database table
This commit is contained in:

committed by
Sebastian Serth

parent
2ce5687f53
commit
26552a0682
@ -12,6 +12,32 @@ class PairProgrammingExerciseFeedback < ApplicationRecord
|
||||
scope :intermediate, -> { where.not(normalized_score: 1.00) }
|
||||
scope :final, -> { where(normalized_score: 1.00) }
|
||||
|
||||
enum difficulty: {
|
||||
too_easy: 0,
|
||||
bit_too_easy: 1,
|
||||
just_right: 2,
|
||||
bit_too_difficult: 3,
|
||||
too_difficult: 4,
|
||||
}, _prefix: true
|
||||
|
||||
enum user_estimated_worktime: {
|
||||
less_5min: 0,
|
||||
between_5_and_10min: 1,
|
||||
between_10_and_20min: 2,
|
||||
between_20_and_30min: 3,
|
||||
more_30min: 4,
|
||||
}, _prefix: true
|
||||
|
||||
enum reason_work_alone: {
|
||||
found_no_partner: 0,
|
||||
too_difficult_to_find_partner: 1,
|
||||
faster_alone: 2,
|
||||
not_working_with_strangers: 3,
|
||||
prefer_to_work_alone: 4,
|
||||
accidentally_alone: 5,
|
||||
other: 6,
|
||||
}, _prefix: true
|
||||
|
||||
def to_s
|
||||
'Pair Programming Exercise Feedback'
|
||||
end
|
||||
|
Reference in New Issue
Block a user