socialforge/db/migrate/20150708025533_add_proporti...

10 lines
243 B
Ruby

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