2018-02-09 19:07:10 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2020-05-11 12:38:36 -07:00
|
|
|
class CreateSurveyQuestions < ActiveRecord::Migration[5.0]
|
2016-06-28 18:16:06 +03:00
|
|
|
def change
|
|
|
|
|
create_table :survey_questions do |t|
|
|
|
|
|
t.references :survey
|
|
|
|
|
t.string :title
|
|
|
|
|
t.integer :kind, default: 0
|
|
|
|
|
t.integer :min_choices
|
|
|
|
|
t.integer :max_choices
|
|
|
|
|
t.text :possible_answers
|
|
|
|
|
t.boolean :mandatory, default: false
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|