method
rename_index
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaStatements
rename_index(table_name, old_name, new_name)public
Renames an index of a table. Raises error if length of new index name is greater than allowed limit.