2015-11-13 14:40:14 +08:00
|
|
|
class ExerciseQuestion < ActiveRecord::Base
|
|
|
|
include Redmine::SafeAttributes
|
|
|
|
|
|
|
|
belongs_to :exercise
|
2015-11-13 15:47:39 +08:00
|
|
|
has_many :exercise_choices, :order => "#{ExerciseChoice.table_name}.choice_position",:dependent => :destroy
|
2015-11-13 14:40:14 +08:00
|
|
|
has_many :exercise_answers, :dependent => :destroy
|
|
|
|
has_many :exercise_standard_answers, :dependent => :destroy
|
|
|
|
end
|