socialforge/db/migrate/20150708025533_add_proporti...

10 lines
243 B
Ruby
Raw Normal View History

2015-07-08 10:58:03 +08:00
class AddProportionToPrograming < ActiveRecord::Migration
def up
add_column :homework_detail_programings, :ta_proportion, :float, :default => 0.1
end
def down
remove_column :homework_detail_programings, :ta_proportion
end
end