Skip to content

Commit

Permalink
Added validations to MultipleChoiceQuestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sdflem committed Sep 21, 2018
1 parent 2547889 commit 2c2858b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/multiple_choice_question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@
#

class MultipleChoiceQuestion < ApplicationRecord
validates :question, presence: true
validates :answer, presence: true
validates :distractor_1, presence: true
end

0 comments on commit 2c2858b

Please sign in to comment.