instance method
validate_table_length!
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
validate_table_length!(table_name)
No documentation comment.
Parameters
-
table_namereq
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