2015-11-13 11:43:44 +08:00
|
|
|
class ExerciseQuestion < ActiveRecord::Migration
|
|
|
|
def up
|
2015-11-13 15:47:39 +08:00
|
|
|
create_table :exercise_questions do |t|
|
2015-11-13 11:43:44 +08:00
|
|
|
t.string :question_title
|
|
|
|
t.integer :question_type
|
2015-11-13 14:40:14 +08:00
|
|
|
t.integer :question_number
|
2015-11-13 11:43:44 +08:00
|
|
|
t.integer :exercise_id
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
drop_table :exercise_question
|
|
|
|
end
|
|
|
|
end
|