16 lines
310 B
Ruby
16 lines
310 B
Ruby
|
class ExerciseAnswer < ActiveRecord::Migration
|
||
|
def up
|
||
|
create_table :exercise_answer do |t|
|
||
|
t.integer :user_id
|
||
|
t.integer :exercise_question_id
|
||
|
t.integer :exercise_choices_id
|
||
|
t.text :answer_text
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
drop_table :exercise_answer
|
||
|
end
|
||
|
end
|