socialforge/db/migrate/20150730093403_add_result_t...

10 lines
188 B
Ruby
Raw Normal View History

class AddResultToTest < ActiveRecord::Migration
def up
add_column :homework_tests, :result, :integer,default: 0
end
def down
remove_column :homework_tests,:result
end
end