Sha256: 776bc1080c4d46adcdac01776751a4be75b4c0e9001c4ad1a5221de1ded549c6

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

# This migration comes from spree (originally 20150317174308)
class RemoveDuplicatedIndexesFromMultiColumns < ActiveRecord::Migration[4.2]
  def change
    remove_index :spree_adjustments, name: "index_adjustments_on_order_id"
    remove_index :spree_option_types_prototypes, :prototype_id
    add_index :spree_option_types_prototypes, :option_type_id
    remove_index :spree_option_values_variants, name: 'index_option_values_variants_on_option_value_and_variant'
    remove_index :spree_option_values_variants, :variant_id
    add_index :spree_option_values_variants, :option_value_id
    remove_index :spree_orders, :user_id
    remove_index :spree_orders_promotions, [:order_id, :promotion_id]
    add_index :spree_orders_promotions, :order_id
    remove_index :spree_products_promotion_rules, name: "index_products_promotion_rules_on_promotion_rule_id"
    remove_index :spree_promotion_rules_users, name: "index_promotion_rules_users_on_user_id"
    remove_index :spree_properties_prototypes, :prototype_id
    remove_index :spree_stock_items, :stock_location_id
    remove_index :spree_taxons_prototypes, :prototype_id
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195917_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091858_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091858_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182046_remove_duplicated_indexes_from_multi_columns.spree.rb