This method is deprecated or moved on the latest stable version.
The last existing version (v6.1.7.7) is shown here.
to_h()
public
Returns the DatabaseConfigurations object as a Hash.
# File activerecord/lib/active_record/database_configurations.rb, line 105
def to_h
configurations.inject({}) do |memo, db_config|
memo.merge(db_config.env_name => db_config.configuration_hash.stringify_keys)
end
end