public
Description: Tracks is a GTD(TM) web application, built with Ruby on Rails
Homepage: http://www.rousette.org.uk/projects/
Clone URL: git://github.com/bsag/tracks.git
Click here to lend your support to: tracks and make a donation at www.pledgie.com !
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
lrbalt (author)
Sun Aug 03 13:05:31 -0700 2008
commit  edb6afd1158bbb5f701abbe339a855f1167513d6
tree    fdfd80283d38a2592ce475777e54460d374b6285
parent  4316912e86d421837cd016a77bbd2f217b173fb3
...
17
18
19
 
 
20
21
22
...
17
18
19
20
21
22
23
24
0
@@ -17,6 +17,8 @@ class AddTagSupport < ActiveRecord::Migration
0
   end
0
 
0
   def self.down
0
+    remove_index :taggings, [:tag_id, :taggable_id, :taggable_type]
0
+    remove_index :tags, :name
0
     drop_table :taggings
0
     drop_table :tags
0
   end

Comments