Does rename_column take care of indexes?

Viewed 15757

Say, we have something like this:

add_column :users, :single, :boolean
add_index :users, :single

and then later we do

rename_column :users, :single, :married

Will ActiveRecord and/or the database handle the renaming of the index as well or do I have to manually drop the index and add it again?

1 Answers
Related