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

8 lines
162 B
Ruby

class Quiz < ApplicationRecord
has_many :questions, -> { order(:sort) }
has_many :candidates
validates_presence_of :dept
validates_presence_of :unit
end