osem-fcy/db/migrate/20160628093634_create_survey_questions.rb
Stella Rouzi 683f62a27c Add more options for surveys
* Survey period constraints
* Add abilities
* Enforce required questions
* Update survey_submssion updated_at
* Do a full match of possible answer and user reply
2018-07-03 08:46:15 +03:00

15 lines
373 B
Ruby

# frozen_string_literal: true
class CreateSurveyQuestions < ActiveRecord::Migration
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