2015-05-19 10:20:07 +08:00
|
|
|
class CreateHomeworkTests < ActiveRecord::Migration
|
2015-05-21 10:54:02 +08:00
|
|
|
def up
|
2015-05-19 10:20:07 +08:00
|
|
|
create_table :homework_tests do |t|
|
|
|
|
t.text :input
|
|
|
|
t.text :output
|
|
|
|
t.integer :homework_common_id
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
2015-05-21 10:54:02 +08:00
|
|
|
|
|
|
|
def down
|
|
|
|
drop_table :homework_tests
|
|
|
|
end
|
2015-05-19 10:20:07 +08:00
|
|
|
end
|