method
set_psql_env
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::Tasks::PostgreSQLDatabaseTasks
set_psql_env()private
No documentation available.
# 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