Topic: Dropping indices with MySql

Hello,

my migrations create indices on foreign key columns in self.up and I want to drop these in self.down.

Unfortunately rake complains about a missing method:

-- drop_index(:cars_owners)
rake aborted!
undefined method `drop_index' for #<ActiveRecord::ConnectionAdapters::MysqlAdapter:0x4007fe0>

Re: Dropping indices with MySql

Instead of drop_index, use remove_index

Railscasts - Free Ruby on Rails Screencasts