Is it possible to rename an index using a rails migration?

rename_index should be given strings and not symbols.

rename_index :table_name, 'old_name', 'new_name'

Had me scratching my head for a while when trying to rename a table and it’s indexes. Rails 3.2.3 and MySQL.

Leave a Comment