Sha256: 7f45b989b0f1b2313a1ef3c63752096544d47c6265acaee40d9e050f240967aa

Contents?: true

Size: 523 Bytes

Versions: 9

Compression:

Stored size: 523 Bytes

Contents

# This migration comes from spree (originally 20130329134939)
class RemoveStockItemAndVariantLock < ActiveRecord::Migration[4.2]
  def up
    # we are moving to pessimistic locking on stock_items
    remove_column :spree_stock_items, :lock_version

    # variants no longer manage their count_on_hand so we are removing their lock
    remove_column :spree_variants, :lock_version
  end

  def down
    add_column :spree_stock_items, :lock_version, :integer
    add_column :spree_variants, :lock_version, :integer
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195763_remove_stock_item_and_variant_lock.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091704_remove_stock_item_and_variant_lock.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091704_remove_stock_item_and_variant_lock.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181892_remove_stock_item_and_variant_lock.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181892_remove_stock_item_and_variant_lock.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181892_remove_stock_item_and_variant_lock.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181892_remove_stock_item_and_variant_lock.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181892_remove_stock_item_and_variant_lock.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181892_remove_stock_item_and_variant_lock.spree.rb