Sha256: dd1bc6ba76fcd408967958f88fffb1a5193a3184eb844c6558f0fa4c87d8d21a
Contents?: true
Size: 257 Bytes
Versions: 141
Compression:
Stored size: 257 Bytes
Contents
class MigrateInventoryUnitSoldToOnHand < ActiveRecord::Migration[4.2] 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
141 entries across 141 versions & 2 rubygems