skill-assessment-app/app/models/question.rb
2016-08-22 16:26:21 -05:00

12 lines
251 B
Ruby

class Question < ApplicationRecord
serialize :input_options, Array
has_many :answers
belongs_to :quiz
validates_presence_of :quiz_id
validates_presence_of :question
validates_presence_of :category
validates_presence_of :input_type
end