Sha256: 93ccfce76d8a27dde291416813a28a3e4406bbd78163e708fde317f7e5d9aa07

Contents?: true

Size: 798 Bytes

Versions: 9

Compression:

Stored size: 798 Bytes

Contents

# This migration comes from spree (originally 20140410141842)
class AddManyMissingIndexes < ActiveRecord::Migration
  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 & 5 rubygems

Version Path
spree_weight_calculator-0.1.0 test/dummy/db/migrate/20160723192569_add_many_missing_indexes.spree.rb
spree_order_reporting-0.0.3 spec/dummy/db/migrate/20160708163166_add_many_missing_indexes.spree.rb
sprangular-0.1.0 spec/dummy/db/migrate/20140814105767_add_many_missing_indexes.spree.rb
sprangular-0.0.1 spec/dummy/db/migrate/20140814105767_add_many_missing_indexes.spree.rb
spree_mercado_pago-0.2.3 spec/dummy/db/migrate/20141204014760_add_many_missing_indexes.spree.rb
spree_mercado_pago-0.2.2 spec/dummy/db/migrate/20141204014760_add_many_missing_indexes.spree.rb
spree_mercado_pago-0.2.1 spec/dummy/db/migrate/20141112193543_add_many_missing_indexes.spree.rb
spree_mercado_pago-0.2.0 spec/dummy/db/migrate/20141112193543_add_many_missing_indexes.spree.rb
spree_mercado_pago_payment_method-0.2.0 spec/dummy/db/migrate/20141112193543_add_many_missing_indexes.spree.rb