FIX: backup_restore.rb wants db user from user, not username (#28229)

ActiveRecord::Base.connection_pool.db_config.configuration_hash has the username in `user`, not `username`.
This commit is contained in:
Jay Pfaffman 2024-08-05 17:49:20 -07:00 committed by GitHub
parent 0514044cf2
commit 2e8273dcb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ module BackupRestore
DatabaseConfiguration.new(
config["backup_host"] || config["host"],
config["backup_port"] || config["port"],
config["username"] || username || ENV["USER"] || "postgres",
config["user"] || username || ENV["USER"] || "postgres",
config["password"] || password,
config["database"],
)