mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 14:31:47 +01:00
add some indexes that speed up some queries
found with the help of query_reviewer at http://code.google.com/p/query-reviewer/ also fixed a removal of an index when you migrate back you need to rake db:migrate to create the indexes
This commit is contained in:
parent
4316912e86
commit
edb6afd115
1 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,8 @@ class AddTagSupport < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
remove_index :taggings, [:tag_id, :taggable_id, :taggable_type]
|
||||
remove_index :tags, :name
|
||||
drop_table :taggings
|
||||
drop_table :tags
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue