skill-assessment-app/app/models/question.rb

12 lines
251 B
Ruby
Raw Normal View History

2016-07-26 17:00:00 -05:00
class Question < ApplicationRecord
serialize :input_options, Array
has_many :answers
belongs_to :quiz
2016-08-19 16:02:18 -05:00
validates_presence_of :quiz_id
validates_presence_of :question
validates_presence_of :category
validates_presence_of :input_type
2016-07-26 17:00:00 -05:00
end