pic_vert_app/db/migrate/20120816091837_create_answer_sets.rb
2013-07-18 11:32:13 +02:00

16 lines
407 B
Ruby

# -*- encoding : utf-8 -*-
class CreateAnswerSets < ActiveRecord::Migration
def change
create_table :answer_sets do |t|
t.references :question_set
t.references :survey_item_answer
t.text :content
t.boolean :is_checked
t.integer :position
t.timestamps
end
add_index :answer_sets, :question_set_id
add_index :answer_sets, :survey_item_answer_id
end
end