class
ActiveRecord::DatabaseConfigurations::UrlConfig
v7.1.3.2 -
Show latest stable
- 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.
Attributes
| [R] | url |
Files
- activerecord/lib/active_record/database_configurations/url_config.rb