aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2012-12-28 01:27:26 +0100
committerYves Senn <yves.senn@gmail.com>2013-02-20 17:50:10 +0100
commitcca43528d40589556401408eb3c315cde199347c (patch)
treecd2794639db357bbb140e2263eb233f88cb4ff47 /activerecord/CHANGELOG.md
parent7bae72c69f2352fd7e02f2d08adf873e4354aea0 (diff)
downloadrails-cca43528d40589556401408eb3c315cde199347c.tar.gz
rails-cca43528d40589556401408eb3c315cde199347c.tar.bz2
rails-cca43528d40589556401408eb3c315cde199347c.zip
reserve index name chars for internal rails operations
Some adapter (SQLite3) need to perform renaming operations to support the rails DDL. These rename prefixes operate with prefixes. When an index name already uses up the full space provieded by `index_name_length` these internal operations will fail. This patch introduces `allowed_index_name_length` which respects the amount of characters used for internal operations. It will always be <= `index_name_length` and every adapter can define how many characters need to be reserved.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 6098c2c425..f45b9219c7 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,13 @@
## Rails 4.0.0 (unreleased) ##
+* 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
+ rails. It's value defaults to `index_name_length` but can vary per adapter.
+ Fix #8264.
+
+ *Yves Senn*
+
* Fixing issue #776.
Memory bloat in transactions is handled by having the transaction hold only