Flowdock
method

rename_index

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
rename_index(table_name, old_name, new_name) public

Renames an index.

Rename the index_people_on_last_name index to index_users_on_last_name:

rename_index :people, 'index_people_on_last_name', 'index_users_on_last_name'
Show source
Register or log in to add new notes.