Sha256: b4befd621dd3e0ab98ee9935484fea82905efafc3eddd86d51ab5c6dd5768d1d

Contents?: true

Size: 319 Bytes

Versions: 9

Compression:

Stored size: 319 Bytes

Contents

# This migration comes from spree (originally 20130325163316)
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

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195759_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091700_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091700_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181888_migrate_inventory_unit_sold_to_on_hand.spree.rb