mbleigh/acts-as-taggable-on — pull request #343 by bf4 (2013-04-17 05:55:46+00:00)
Title: Add missing indices

Referenced in #294

Note that because indexed fields are added in order, the attached commit includes the index on :tag_id and the compound index on taggable_id, taggable_type, context

I was running consistency_fail on my project and it pointed out that since the app enforces uniqueness on these fields, the database should as well. (It's more reliable race-condition-wise, too)