diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-04-30 15:17:52 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-04-30 15:17:52 +0200 |
commit | 8fd46330095b3c1a5d7461c194028e22d9b77b97 (patch) | |
tree | e049d299a7e62afec7dfa4f51a6ac86f5f0ef950 /activerecord/lib/active_record | |
parent | a000e5c455ba70e782ce3700beb9913999bb8c62 (diff) | |
parent | 84baa027d245d16d1ab8465f226a0e6cb62676fa (diff) | |
download | rails-8fd46330095b3c1a5d7461c194028e22d9b77b97.tar.gz rails-8fd46330095b3c1a5d7461c194028e22d9b77b97.tar.bz2 rails-8fd46330095b3c1a5d7461c194028e22d9b77b97.zip |
Merge pull request #19962 from prathamesh-sonpatki/nodoc-validate-index-length
Nodoc validate_index_length! method
Diffstat (limited to 'activerecord/lib/active_record')
-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 |