Sha256: bd2e63161f01b3412c09bb04fde4987f6caa09fe4d21644e71d9002c4ee2bcbb

Contents?: true

Size: 312 Bytes

Versions: 9

Compression:

Stored size: 312 Bytes

Contents

# This migration comes from spree (originally 20160509064646)
class RemoveCounterCacheFromSpreeVariantsToSpreeStockItems < ActiveRecord::Migration[4.2]
  def up
    if column_exists?(:spree_variants, :stock_items_count)
      remove_column :spree_variants, :stock_items_count
    end
  end

  def down
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195933_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091874_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091874_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182062_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb