class
Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Superclass: DatabaseConfig

Active Record Database Url Config

A UrlConfig object is created for each database configuration entry that is created from a URL. This can either be a URL string or a hash with a URL in place of the config hash.

A URL config:

postgres://localhost/foo

Becomes:

#<ActiveRecord::DatabaseConfigurations::UrlConfig:0x00007fdc3238f340
  @env_name="default_env", @name="primary",
  @config={adapter: "postgresql", database: "foo", host: "localhost"},
  @url="postgres://localhost/foo">

See ActiveRecord::DatabaseConfigurations for more info.

Show files where this class is defined (1 file)
Register or log in to add new notes.