Sha256: e756b5b65fc44344110e7c2ec5949ea91d870f992127a1fe6e756a0ffc1d6d50

Contents?: true

Size: 211 Bytes

Versions: 16

Compression:

Stored size: 211 Bytes

Contents

class AddUniquenessConstraintToProductTranslations < ActiveRecord::Migration[6.1]
  def change
    add_index :spree_product_translations, [:locale, :slug], unique: true, name: 'unique_slug_per_locale'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spree_core-4.10.1 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.10.0 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.9.0 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.8.3 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.8.2 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.7.3 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.6.6 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.6.5 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.7.2 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.7.1 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.6.4 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.7.0 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.6.3 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.6.2 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.6.1 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb
spree_core-4.6.0 db/migrate/20221220133432_add_uniqueness_constraint_to_product_translations.rb