diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-04-30 13:29:20 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2015-04-30 13:29:20 +0530 |
commit | 84baa027d245d16d1ab8465f226a0e6cb62676fa (patch) | |
tree | 05f354e7acf977cb548d09988f7d2c378de80c30 /activerecord | |
parent | 9822ce2eb30308810d7371c7b22e87bf9cfb3989 (diff) | |
download | rails-84baa027d245d16d1ab8465f226a0e6cb62676fa.tar.gz rails-84baa027d245d16d1ab8465f226a0e6cb62676fa.tar.bz2 rails-84baa027d245d16d1ab8465f226a0e6cb62676fa.zip |
Nodoc validate_index_length! method
- This method is used only by adapters to validate length of new index names.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 879a47f021..c4a37f8538 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -1049,7 +1049,7 @@ module ActiveRecord end end - def validate_index_length!(table_name, new_name) + def validate_index_length!(table_name, new_name) # :nodoc: if new_name.length > allowed_index_name_length raise ArgumentError, "Index name '#{new_name}' on table '#{table_name}' is too long; the limit is #{allowed_index_name_length} characters" end |