Skip to content

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

#364829 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Douglas Barbosa Alexandre

Merge request reports