method
default_hash
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::DatabaseConfigurations
default_hash(env = default_env)public
Returns the config hash that corresponds with the environment
If the application has multiple databases default_hash will return the first config hash for the environment.
{ database: "my_db", adapter: "mysql2" }