Will removing a column with a Rails migration remove indexes associated with the column

Dexygen picture Dexygen · Aug 26, 2011 · Viewed 17k times · Source

In Rails 2, will removing a column with a Rails migration also change/remove indexes associated with the column? If not, and instead you have to also change/remove each index manually, shouldn't it instead be automated?

Thanks (from a Rails newbie)

Answer

enter08 picture enter08 · Dec 23, 2014

From Rails 4 upwards, the index removes automatically with the column removal.