socialforge/db/migrate/20151113025721_exercise_ans...

16 lines
310 B
Ruby
Raw Normal View History

2015-11-13 11:43:44 +08:00
class ExerciseAnswer < ActiveRecord::Migration
def up
create_table :exercise_answers do |t|
2015-11-13 11:43:44 +08:00
t.integer :user_id
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_answer
end
end