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.
psfpeqmhf/app/models/exercise_score_setting.rb

9 lines
278 B

# 课堂中随机试卷的赋分规则配置
class ExerciseScoreSetting < ApplicationRecord
validates_presence_of :item_type, :score
belongs_to :exercise
enum item_type: { SINGLE: 0, MULTIPLE: 1, JUDGMENT: 2, COMPLETION: 3, SUBJECTIVE: 4, PRACTICAL: 5, PROGRAM: 6 }
end