Sha256: 653ea4a5159b482d0bfe57aceb3ea977412f31d000f727074d5194c0a6cd267a

Contents?: true

Size: 702 Bytes

Versions: 28

Compression:

Stored size: 702 Bytes

Contents

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
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
solidus_core-1.1.4 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.0.7 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.3.0.beta1 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.0.6 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.2.2 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.2.1 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.1.3 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.0.5 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.2.0 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.2.0.rc2 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.0.4 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.1.2 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.2.0.rc1 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.2.0.beta1 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.0.3 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.1.1 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.1.0 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.1.0.pre2 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.1.0.pre1 db/migrate/20140410141842_add_many_missing_indexes.rb
solidus_core-1.1.0.beta1 db/migrate/20140410141842_add_many_missing_indexes.rb