tokyorails/tokyorails — pull request #33 by lloydmeta (2012-05-23 00:56:31+00:00)
Title: (Re)-Add an index to images

When I added photos to events, I removed the index on member_id when I switched it to a polymorphic relationship, but I forgot to add an index on the polymorphic link (imageable_id and imageable_type).

Today, I noticed the site was slow when loading the events page, and hopefully this alleviates that issue (seemed to help on my local). Don't want visitors to think Rails is dog slow ;)