Sha256: f294ce9987145d611f961a109a9f4756331384944738c5d35d2ca6c97e161300
Contents?: true
Size: 656 Bytes
Versions: 23
Compression:
Stored size: 656 Bytes
Contents
# frozen_string_literal: true class AddUniqueIndexToOptionValuesVariants < ActiveRecord::Migration[5.2] def up remove_index :spree_option_values_variants, [:variant_id, :option_value_id] add_index :spree_option_values_variants, [:variant_id, :option_value_id], name: "index_option_values_variants_on_variant_id_and_option_value_id", unique: true end def down remove_index :spree_option_values_variants, [:variant_id, :option_value_id] add_index :spree_option_values_variants, [:variant_id, :option_value_id], name: "index_option_values_variants_on_variant_id_and_option_value_id" end end
Version data entries
23 entries across 23 versions & 1 rubygems