pic_vert_app/db/migrate/20120816091837_create_answer_sets.rb
2012-08-18 12:07:32 +02:00

14 lines
354 B
Ruby

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.timestamps
end
add_index :answer_sets, :question_set_id
add_index :answer_sets, :survey_item_answer_id
end
end