method

max_connections

rails latest stable - Class: ActiveRecord::DatabaseConfigurations::HashConfig

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

max_connections()
public

No documentation available.

# 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