Finish remaining question types

This commit is contained in:
Charlotte Van Petegem 2025-05-20 18:28:20 +02:00
parent 0d54f756d8
commit 5bd1e821f7
Signed by: chvp
SSH key fingerprint: SHA256:s9rb8jBVfdahqWHuBAcHCBP1wmj4eYQXZfqgz4H3E9E
20 changed files with 431 additions and 8 deletions

View file

@ -21,8 +21,8 @@
# section_id (section_id => sections.id)
#
class Question < ApplicationRecord
enum :answer_kind, { simple: 0, image: 1, politicians: 2 }, prefix: true
enum :question_kind, { simple: 0, video: 1 }, prefix: true
enum :answer_kind, { simple: 0, image: 1, politicians: 2, acrostic: 3, connections: 4, lyrics: 5 }, prefix: true
enum :question_kind, { simple: 0, video: 1, acrostic: 3 }, prefix: true
belongs_to :section
has_one :answer