class UrlConfig
Ruby on Rails 8.1.2
Since v6.0.6Active 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.
Inherits from
Attributes
Methods (defined here)
- self. new
Private methods
(3)
Implementation detail — not part of the public API.
Methods (inherited)
From ActiveRecord::DatabaseConfigurations::HashConfig (22)
- # adapter
- # checkout_timeout
- # database
- # default_schema_cache_path
- # host
- # idle_timeout
- # keepalive
- # lazy_schema_cache_path
- # max_age
- # max_connections
- # max_queue
- # max_threads
- # migrations_paths
- # min_connections
- # min_threads
- # pool
- # query_cache
- # replica?
- # schema_cache_path
- # schema_dump
- # seeds?
- self. new