Files
openfoodnetwork/db/migrate/20120327000621_prevent_nil_payment_total.rb
Andrew Spinks cd1938a74e spree install.
2012-03-27 11:06:49 +11:00

9 lines
172 B
Ruby

class PreventNilPaymentTotal < ActiveRecord::Migration
def up
execute "UPDATE orders SET payment_total = 0.0 WHERE payment_total IS NULL"
end
def down
end
end