method

default_hash

Importance_1
v6.0.0 - Show latest stable - 0 notes - Class: DatabaseConfigurations
default_hash(env = ActiveRecord::ConnectionHandling::DEFAULT_ENV.call.to_s) 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" }
Show source
Register or log in to add new notes.