10 lines
188 B
Ruby
10 lines
188 B
Ruby
|
class AddResultToTest < ActiveRecord::Migration
|
||
|
def up
|
||
|
add_column :homework_tests, :result, :integer,default: 0
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
remove_column :homework_tests,:result
|
||
|
end
|
||
|
end
|