Skip to content

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

  1. Follow
  2. On the make geo-setup step, you should get an error PG::ConnectionBad: FATAL: database "gitlabhq_development" does not exist
  3. Switch to this branch in the gitlab folder of your GDK installation.
  4. Drop the current database bundle exec rails db:drop:geo
  5. 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.

Related issues

  1. gitlab-development-kit#1446 (closed)
  2. #348357 (closed)

Merge request reports