Sha256: a2ef9724a8ed445ecc56ad661014bb4d4b81fdc0b75eaea23f713debc2ff99a1

Contents?: true

Size: 396 Bytes

Versions: 9

Compression:

Stored size: 396 Bytes

Contents

# This migration comes from spree (originally 20150216173445)
class AddIndexToSpreeStockItemsVariantId < ActiveRecord::Migration[4.2]
  def up
    unless index_exists? :spree_stock_items, :variant_id
      add_index :spree_stock_items, :variant_id
    end
  end

  def down
    if index_exists? :spree_stock_items, :variant_id
      remove_index :spree_stock_items, :variant_id
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195914_add_index_to_spree_stock_items_variant_id.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091855_add_index_to_spree_stock_items_variant_id.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091855_add_index_to_spree_stock_items_variant_id.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182043_add_index_to_spree_stock_items_variant_id.spree.rb