Added database indexes. Performance boost for balance page.
Conflicts: db/schema.rb
This commit is contained in:
parent
524d9b7c7a
commit
7b7d50a235
2 changed files with 13 additions and 0 deletions
11
db/migrate/20120512211613_add_order_indexes.rb
Normal file
11
db/migrate/20120512211613_add_order_indexes.rb
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class AddOrderIndexes < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_index :group_order_articles, :group_order_id
|
||||
add_index :group_order_articles, :order_article_id
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_index :group_order_articles, :group_order_id
|
||||
remove_index :group_order_articles, :order_article_id
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue