Sha256: 8bffc81d54b68c9d776bbecd57fe1dcaf34bcf70e9bc4e121445183435c9adbc

Contents?: true

Size: 803 Bytes

Versions: 9

Compression:

Stored size: 803 Bytes

Contents

# This migration comes from spree (originally 20140410141842)
class AddManyMissingIndexes < ActiveRecord::Migration[4.2]
  def change
    add_index :spree_adjustments, [:adjustable_id, :adjustable_type]
    add_index :spree_adjustments, :eligible
    add_index :spree_adjustments, :order_id
    add_index :spree_promotions, :code
    add_index :spree_promotions, :expires_at
    add_index :spree_states, :country_id
    add_index :spree_stock_items, :deleted_at
    add_index :spree_option_types, :position
    add_index :spree_option_values, :position
    add_index :spree_product_option_types, :option_type_id
    add_index :spree_product_option_types, :product_id
    add_index :spree_products_taxons, :position
    add_index :spree_promotions, :starts_at
    add_index :spree_stores, :url
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195847_add_many_missing_indexes.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091788_add_many_missing_indexes.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091788_add_many_missing_indexes.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181976_add_many_missing_indexes.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181976_add_many_missing_indexes.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181976_add_many_missing_indexes.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181976_add_many_missing_indexes.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181976_add_many_missing_indexes.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181976_add_many_missing_indexes.spree.rb