admin questions work
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user