Sha256: 4e4852a8508b922c2fbb5565f2fb45b08c23b2186f84d46dde6c646beed2609a

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

# This migration comes from spree (originally 20150626214817)
class RemoveCounterCacheFromSpreeVariantsToSpreeStockItems < ActiveRecord::Migration
  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

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103606_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112558_remove_counter_cache_from_spree_variants_to_spree_stock_items.spree.rb