instance method validate_table_length!

Ruby on Rails 8.1.2

Since v7.1.6 Private

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

validate_table_length!(table_name)

No documentation comment.

Parameters

table_name req
Source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 1885
        def validate_table_length!(table_name)
          if table_name.length > table_name_length
            raise ArgumentError, <<~MSG.squish
              Table name '#{table_name}' is too long (#{table_name.length} characters); the limit is
              #{table_name_length} characters
            MSG
          end
        end

Defined in activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb line 1885 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::SchemaStatements

Type at least 2 characters to search.

↑↓ navigate · open · esc close