2015-11-13 15:47:39 +08:00
|
|
|
class ExerciseChoice < ActiveRecord::Base
|
2015-11-13 14:40:14 +08:00
|
|
|
include Redmine::SafeAttributes
|
2018-03-23 15:54:50 +08:00
|
|
|
default_scope :order => 'choice_position'
|
2015-11-13 14:40:14 +08:00
|
|
|
|
|
|
|
belongs_to :exercise_question
|
|
|
|
has_many :exercise_answers, :dependent => :destroy
|
|
|
|
has_many :exercise_standard_answers, :dependent => :destroy
|
|
|
|
end
|