Create the the index on all four used fields for better performance #294

Closed
wants to merge 1 commit into
from
@@ -20,7 +20,7 @@ def self.up
end
add_index :taggings, :tag_id
- add_index :taggings, [:taggable_id, :taggable_type, :context]
+ add_index :taggings, [:taggable_id, :taggable_type, :tag_id, :context], :name => "index_taggings_on_keys"
end
def self.down