method

rename_index

rails latest stable - Class: ActiveRecord::ConnectionAdapters::Table

Method not available on this version

This method is only available on newer versions. The first available version (v4.0.2) is shown here.

rename_index(index_name, new_index_name)
public

Renames the given index on the table.

t.rename_index(:user_id, :account_id)