Update existing Spree::InventoryItem records: change backordered state to on_hand.

This commit is contained in:
Matt-Yorkley
2019-09-08 19:41:34 +01:00
parent 11ea852211
commit a3efd13d46

View File

@@ -0,0 +1,5 @@
class SetBackorderedInventoryToOnHand < ActiveRecord::Migration
def up
execute("UPDATE spree_inventory_units SET state = 'on_hand' WHERE state = 'backordered'")
end
end