socialforge/db/migrate/20151113025549_exercise_sta...

15 lines
311 B
Ruby

class ExerciseStandardAnswer < ActiveRecord::Migration
def up
create_table :exercise_standard_answer do |t|
t.integer :exercise_question_id
t.integer :exercise_choices_id
t.text :answer_text
t.timestamps
end
end
def down
drop_table :exercise_standard_answer
end
end