Sha256: 03974a78f558a69f444fc8ad0678fb584cd07fdf1abcdd5f0a9083c83c08cfa7

Contents?: true

Size: 277 Bytes

Versions: 9

Compression:

Stored size: 277 Bytes

Contents

# This migration comes from spree (originally 20141217215630)
class UpdateProductSlugIndex < ActiveRecord::Migration[4.2]
  def change
    remove_index :spree_products, :slug if index_exists?(:spree_products, :slug)
    add_index :spree_products, :slug, unique: true
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195903_update_product_slug_index.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091844_update_product_slug_index.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091844_update_product_slug_index.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182032_update_product_slug_index.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182032_update_product_slug_index.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182032_update_product_slug_index.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182032_update_product_slug_index.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182032_update_product_slug_index.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182032_update_product_slug_index.spree.rb