socialforge/db/migrate/20141009010934_update_bids_...

13 lines
202 B
Ruby
Raw Normal View History

class UpdateBidsProportion < ActiveRecord::Migration
def up
Bid.where("proportion is null").each do |bid|
bid.proportion = 60
bid.save
end
end
def down
end
end