mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
* Survey period constraints * Add abilities * Enforce required questions * Update survey_submssion updated_at * Do a full match of possible answer and user reply
15 lines
373 B
Ruby
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
|