method

rename_index

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Table
rename_index(index_name, new_index_name) public

Renames the given index on the table.

t.rename_index(:user_id, :account_id)

See {connection.rename_index}[rdoc-ref:SchemaStatements#rename_index]

Show source
Register or log in to add new notes.