Files
fetsite/db/migrate/20150729211328_create_survey_choices.rb
2015-07-30 00:03:02 +02:00

14 lines
283 B
Ruby

class CreateSurveyChoices < ActiveRecord::Migration
def change
create_table :survey_choices do |t|
t.string :text
t.references :question
t.integer :sort
t.string :picture
t.timestamps
end
add_index :survey_choices, :question_id
end
end