Properly handle the PG::ReadOnlySqlTransaction error error in rake task gitlab:db:validate_config
What does this MR do and why?
ActiveRecord::StatementInvalid
is a superclass for all database execution errors. It wraps the underlying database error as cause
. This fixes the rake task running against the Geo database described in #364829 (closed).
Related issue
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Douglas Barbosa Alexandre