Sha256: 5b162a67386c400b201f971aaeb3232f3c7cc19d970945b132aee873698d02fd

Contents?: true

Size: 864 Bytes

Versions: 2

Compression:

Stored size: 864 Bytes

Contents

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

  def change
    safe_add_index :spree_adjustments, [:adjustable_id, :adjustable_type]
    safe_add_index :spree_adjustments, :eligible
    safe_add_index :spree_adjustments, :order_id
    safe_add_index :spree_promotions, :code
    safe_add_index :spree_promotions, :expires_at
    safe_add_index :spree_states, :country_id
    safe_add_index :spree_stock_items, :deleted_at
    safe_add_index :spree_option_types, :position
    safe_add_index :spree_option_values, :position
    safe_add_index :spree_product_option_types, :option_type_id
    safe_add_index :spree_product_option_types, :product_id
    safe_add_index :spree_products_taxons, :position
    safe_add_index :spree_promotions, :starts_at
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103490_add_many_missing_indexes.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112442_add_many_missing_indexes.spree.rb