From 39eef1a565ef02e4dabc0811ef1bf4547ff9a60e Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Fri, 28 Dec 2012 22:56:44 +0100 Subject: also rename indexes when a table or column is renamed When a table or a column is renamed related indexes kept their name. This will lead to confusing names. This patch renames related indexes when a column or a table is renamed. Only indexes with names generated by rails will be renamed. Indexes with custom names will not be renamed. --- activerecord/CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 1358c546e9..4ff791a29f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,10 @@ ## Rails 4.0.0 (unreleased) ## +* Rename related indexes on `rename_table` and `rename_column`. This + does not affect indexes with custom names. + + *Yves Senn* + * Prevent the creation of indices with too long names, which cause internal operations to fail (sqlite3 adapter only). The method `allowed_index_name_length` defines the length limit enforced by -- cgit v1.2.3