Sha256: cc54ab0ac5f1a278e26ec58bf614dfffd110a3829aaf9bd3a26eb5bc33f73e87

Contents?: true

Size: 309 Bytes

Versions: 6

Compression:

Stored size: 309 Bytes

Contents

class AddIndexingToSpreeLoyaltyPointsTransaction < ActiveRecord::Migration
  def change
    add_index :spree_loyalty_points_transactions, [:source_type, :source_id], name: 'by_source'
    add_index :spree_loyalty_points_transactions, :user_id
    add_index :spree_loyalty_points_transactions, :type
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_loyalty_points-1.1.1 db/migrate/20140203063433_add_indexing_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.3 db/migrate/20140203063433_add_indexing_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.1.0 db/migrate/20140203063433_add_indexing_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.2 db/migrate/20140203063433_add_indexing_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.1 db/migrate/20140203063433_add_indexing_to_spree_loyalty_points_transaction.rb
spree_loyalty_points-1.0.0 db/migrate/20140203063433_add_indexing_to_spree_loyalty_points_transaction.rb