socialforge/db/migrate/20151113025459_exercise_que...

16 lines
315 B
Ruby
Raw Normal View History

2015-11-13 11:43:44 +08:00
class ExerciseQuestion < ActiveRecord::Migration
def up
create_table :exercise_questions do |t|
2015-11-13 11:43:44 +08:00
t.string :question_title
t.integer :question_type
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