You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trustieforge/db/migrate/20141009010934_update_bids_...

13 lines
202 B

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