instance method allowed_index_name_length

Ruby on Rails 4.2.9

Since v4.0.13 Last seen in v6.1.7.10

Available in: v4.0.13 v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10

Signature

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

Defined in ActiveRecord::ConnectionAdapters::DatabaseLimits

Type at least 2 characters to search.

↑↓ navigate · open · esc close