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.
trustieforge/app/models/exercise_question.rb

9 lines
331 B

class ExerciseQuestion < ActiveRecord::Base
include Redmine::SafeAttributes
belongs_to :exercise
has_many :exercise_choices, :order => "#{ExerciseChoice.table_name}.choice_position",:dependent => :destroy
has_many :exercise_answers, :dependent => :destroy
has_many :exercise_standard_answers, :dependent => :destroy
end