method

set_psql_env

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: PostgreSQLDatabaseTasks

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.

set_psql_env() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/tasks/postgresql_database_tasks.rb, line 103
        def set_psql_env
          ENV["PGHOST"]     = db_config.host                     if db_config.host
          ENV["PGPORT"]     = configuration_hash[:port].to_s     if configuration_hash[:port]
          ENV["PGPASSWORD"] = configuration_hash[:password].to_s if configuration_hash[:password]
          ENV["PGUSER"]     = configuration_hash[:username].to_s if configuration_hash[:username]
        end
Register or log in to add new notes.