diff options
author | Yves Senn <yves.senn@gmail.com> | 2012-12-28 22:56:44 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-02-20 18:19:25 +0100 |
commit | 39eef1a565ef02e4dabc0811ef1bf4547ff9a60e (patch) | |
tree | cc528b7c8edb014e65bc9c4e1c5e8dec4d89993d /activerecord/CHANGELOG.md | |
parent | 20ed3e0f715741ca53c992bcdf87b5039e6692af (diff) | |
download | rails-39eef1a565ef02e4dabc0811ef1bf4547ff9a60e.tar.gz rails-39eef1a565ef02e4dabc0811ef1bf4547ff9a60e.tar.bz2 rails-39eef1a565ef02e4dabc0811ef1bf4547ff9a60e.zip |
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.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
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 |