aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/query_methods.rb
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/lib/active_record/relation/query_methods.rb
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/lib/active_record/relation/query_methods.rb')
0 files changed, 0 insertions, 0 deletions