admin questions work

This commit is contained in:
Mark Moser
2016-08-19 16:02:18 -05:00
parent 63701c8247
commit 6bbbaf4580
27 changed files with 349 additions and 51 deletions

View File

@ -3,4 +3,9 @@ class Question < ApplicationRecord
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