Sha256: d789e418dae9b8b6c11b6b417c924b42352864ca50bcf431a1f14f9203213e10
Contents?: true
Size: 252 Bytes
Versions: 11
Compression:
Stored size: 252 Bytes
Contents
class MigrateInventoryUnitSoldToOnHand < ActiveRecord::Migration def up Spree::InventoryUnit.where(state: 'sold').update_all(state: 'on_hand') end def down Spree::InventoryUnit.where(state: 'on_hand').update_all(state: 'sold') end end
Version data entries
11 entries across 11 versions & 1 rubygems