instance method
allowed_index_name_length
Ruby on Rails 4.2.9
Since v4.0.13 Last seen in v6.1.7.10Signature
allowed_index_name_length()
Returns the maximum allowed length for an index name. This limit is enforced by rails and Is less than or equal to index_name_length. The gap between index_name_length is to allow internal rails operations to use prefixes in temporary operations.
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb, line 25
def allowed_index_name_length
index_name_length
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb line 25
· View on GitHub
· Improve this page
· Find usages on GitHub