class HashConfig

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 Hash Config

A HashConfig object is created for each database configuration entry that is created from a hash.

A hash config:

{ "development" => { "database" => "db_name" } }

Becomes:

#<ActiveRecord::DatabaseConfigurations::HashConfig:0x00007fd1acbded10
  @env_name="development", @name="primary", @config={database: "db_name"}>

See ActiveRecord::DatabaseConfigurations for more info.

Inherits from

ActiveRecord::DatabaseConfigurations::DatabaseConfig

Attributes

Methods (defined here)

Private methods

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

Used by

Subclasses (1)

Type at least 2 characters to search.

↑↓ navigate · open · esc close