Sha256: b51c03436969dcb5981a5f2c69de4fd876d256aefc7d5d1e3953b2b5eaadde19

Contents?: true

Size: 461 Bytes

Versions: 141

Compression:

Stored size: 461 Bytes

Contents

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

141 entries across 141 versions & 2 rubygems

Version Path
spree_core-4.0.9 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.1.15 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.2.7 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.3.3 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.2.6 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.3.2 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.3.1 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.3.0 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.3.0.rc3 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.3.0.rc2 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.3.0.rc1 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.2.5 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.1.14 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.0.8 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.2.4 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-3.7.14.1 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.2.3.1 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.1.13.1 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.0.7.1 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb
spree_core-4.2.3 db/migrate/20130329134939_remove_stock_item_and_variant_lock.rb