13 lines
190 B
Ruby
13 lines
190 B
Ruby
|
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
|