instance method
max_connections
Ruby on Rails 8.1.2
Since v8.1.2Signature
max_connections()
No documentation comment.
Source
# File activerecord/lib/active_record/database_configurations/hash_config.rb, line 73
def max_connections
max_connections = configuration_hash.fetch(:max_connections) {
configuration_hash.fetch(:pool, 5)
}&.to_i
max_connections if max_connections && max_connections >= 0
end
Defined in activerecord/lib/active_record/database_configurations/hash_config.rb line 73
· View on GitHub
· Improve this page
· Find usages on GitHub