Skip to content

Run post migrations first in migration test rake task

Jon Jenkins requested to merge run_post_test_migrations_first into master

What does this MR do and why?

It ensures that post-deploy migrations run after regular migrations in the test migration runner, regardless of the version. This is intended to emulate a standard migration cycle where regular migrations are applied first, then post migrations. This solves gitlab-com-database-testing issue 76

How to set up and validate locally

  1. bundle exec rspec spec/lib/gitlab/database/migrations/runner_spec.rb

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 Jon Jenkins

Merge request reports

Loading