instance method
extract_limit
Ruby on Rails 5.1.7
Since v5.1.7 Last seen in v5.1.7 Private — implementation detail, not part of the public APISignature
extract_limit(sql_type)
No documentation comment.
Parameters
-
sql_typereq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 532
def extract_limit(sql_type)
case sql_type
when /^bigint/i, /^int8/i
8
when /^smallint/i
2
else
super
end
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 532
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter