method

set_psql_env

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: PostgreSQLDatabaseTasks
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.