instance method
allowed_index_name_length
Ruby on Rails 6.0.6
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 34
def allowed_index_name_length
index_name_length
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb line 34
· View on GitHub
· Improve this page
· Find usages on GitHub