socialforge/db/migrate/20151113025549_exercise_sta...

15 lines
311 B
Ruby
Raw Normal View History

2015-11-13 11:43:44 +08:00
class ExerciseStandardAnswer < ActiveRecord::Migration
def up
create_table :exercise_standard_answers do |t|
2015-11-13 11:43:44 +08:00
t.integer :exercise_question_id
t.integer :exercise_choice_id
2015-11-13 11:43:44 +08:00
t.text :answer_text
t.timestamps
end
end
def down
drop_table :exercise_standard_answer
end
end