pascalh1011/migrant — Issue #11: Support Polymorphic association indexes
Author: KieranP
Created: 2011-11-24 22:11:11+00:00
State: open

When a model contains polymorphic associations, e.g. commentable, the commentable_type and commentable_id should be indexed together.

Currently they are not, and migrant is adding another index for just the id, which will never be queried on its own.