Sha256: 48b514dcce7822f0ce9e7d94339dbf20979490eca81a62bdddddfa5a1d73b9dc
Contents?: true
Size: 264 Bytes
Versions: 136
Compression:
Stored size: 264 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
136 entries across 136 versions & 3 rubygems