class DatabaseConfigurations

Ruby on Rails 7.1.6

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Active Record Database Configurations

ActiveRecord::DatabaseConfigurations returns an array of DatabaseConfig objects that are constructed from the application’s database configuration hash or URL string.

The array of DatabaseConfig objects in an application default to either a HashConfig or UrlConfig. You can retrieve your application’s config by using ActiveRecord::Base.configurations.

If you register a custom handler, objects will be created according to the conditions of the handler. See ::register_db_config_handler for more on registering custom handlers.

Inherits from

Object

Namespace

Classes

Attributes

Methods (defined here)

Private methods

(12) Implementation detail — not part of the public API.

Methods (inherited)

From Object (17)

Type at least 2 characters to search.

↑↓ navigate · open · esc close