Fix rake task to setup the Geo tracking database
What does this MR do and why?
It was broken because db:abort_if_pending_migrations
task loop through the configs for all databases, checking for pending migrations. So db:seed:geo
was looking for pending migrations in a database that does not exist in the Geo PostgreSQL
instance.
How to set up and validate locally
- Follow https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/geo.md
- On the
make geo-setup
step, you should get an errorPG::ConnectionBad: FATAL: database "gitlabhq_development" does not exist
- Switch to this branch in the
gitlab
folder of your GDK installation. - Drop the current database
bundle exec rails db:drop:geo
- Run the
make geo-setup
again
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.