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