Does rename_column take care of indexes?

For PostgreSQL, rename_column is implemented as a simple ALTER TABLE … RENAME COLUMN … and that does preserve the indexes. The MySQL versions (both of them) do an ALTER TABLE … CHANGE … and that also preserves the indexes. The SQLite version appears to copy the entire table (with indexes), drop the old one, and …

Read more