编程作业表增加question_id字段

This commit is contained in:
sw 2015-07-09 15:20:59 +08:00
parent eb1976efbb
commit 24d6c8e17e
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
class AddQuestionIdToHomework < ActiveRecord::Migration
def up
add_column :homework_detail_programings, :question_id, :integer
end
def down
remove_column :homework_detail_programings, :question_id
end
end