method

default_hash

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: DatabaseConfigurations

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

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" }
Show source
Register or log in to add new notes.