socialforge/db/migrate/20150715070534_create_test_...

15 lines
283 B
Ruby
Raw Normal View History

class CreateTestResult < ActiveRecord::Migration
def up
2015-07-15 15:28:44 +08:00
create_table :student_work_tests do |t|
t.integer :student_work_id
t.integer :homework_test_id
t.integer :result
t.timestamps
end
end
def down
2015-07-15 15:28:44 +08:00
drop_table :student_work_tests
end
end