Sha256: 56434d8c4b90d44c5ad77f53e4a5761c6f2306322b39e60f4736e7680b5d3f3a

Contents?: true

Size: 276 Bytes

Versions: 2

Compression:

Stored size: 276 Bytes

Contents

# This migration comes from spree (originally 20141217215630)
class UpdateProductSlugIndex < ActiveRecord::Migration
  include Spree::MigrationHelpers

  def change
    safe_remove_index :spree_products, :slug
    safe_add_index :spree_products, :slug, unique: true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103544_update_product_slug_index.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112496_update_product_slug_index.spree.rb