Skip to content

Commit 2257545

Browse files
author
John Pinto
committed
Updated app/models/question_option.rb.
Changes: - added Answer Identifiers.
1 parent 5a8b900 commit 2257545

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/models/question_option.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# created_at :datetime
1212
# updated_at :datetime
1313
# question_id :integer
14+
# answer_identifier :string
1415
#
1516
# Indexes
1617
#
@@ -51,6 +52,9 @@ class QuestionOption < ApplicationRecord
5152

5253
validates :is_default, inclusion: { in: BOOLEAN_VALUES,
5354
message: INCLUSION_MESSAGE }
55+
56+
validates :answer_identifier, presence: true, allow_blank: true
57+
5458

5559
# =============
5660
# = Callbacks =

0 commit comments

Comments
 (0)