socialforge/db/migrate/20150422034543_change_bid_o...

9 lines
215 B
Ruby
Raw Normal View History

2015-04-22 11:49:48 +08:00
class ChangeBidOpenAnonymousEvaluation < ActiveRecord::Migration
def chang
Bid.where("open_anonymous_evaluation IS NULL").each do |bid|
bid.open_anonymous_evaluation = 0
bid.save
end
end
end