mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-03 02:21:33 +00:00
9 lines
172 B
Ruby
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
|