socialforge/db/migrate/20150801034945_change_resul...

10 lines
221 B
Ruby

class ChangeResultDefault < ActiveRecord::Migration
def up
change_column :homework_tests,:result,:integer,:default => nil
end
def down
change_column :homework_tests,:result,:integer,:default => 0
end
end