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

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