Add politicians question type
This commit is contained in:
parent
4fe218166f
commit
2893f2bc53
16 changed files with 101 additions and 33 deletions
|
@ -4,6 +4,7 @@
|
|||
#
|
||||
# id :integer not null, primary key
|
||||
# answer_kind :integer not null
|
||||
# data :text
|
||||
# public_asset_path :string
|
||||
# question_kind :integer default("simple"), not null
|
||||
# text :text not null
|
||||
|
@ -25,4 +26,6 @@ class Question < ApplicationRecord
|
|||
|
||||
belongs_to :section
|
||||
has_one :answer
|
||||
|
||||
serialize :data, coder: JSON
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue