mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
10 lines
243 B
Ruby
10 lines
243 B
Ruby
class MigrateAdjustments < ActiveRecord::Migration
|
|
def up
|
|
execute "UPDATE spree_adjustments SET amount = 0.0 WHERE amount IS NULL"
|
|
execute "UPDATE spree_adjustments SET mandatory = 't' WHERE locked = 't'"
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|