From 1c2c3af7caeafd18378fb6ac405a897e94449d9c Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 28 Nov 2024 16:34:56 +0100 Subject: [PATCH] Respect the 4.2.0 breakpoint in migration tests --- .github/workflows/test-migrations.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/test-migrations.yml b/.github/workflows/test-migrations.yml index 71c564e2d7..306191fb8e 100644 --- a/.github/workflows/test-migrations.yml +++ b/.github/workflows/test-migrations.yml @@ -91,6 +91,11 @@ jobs: bin/rails db:drop bin/rails db:create SKIP_POST_DEPLOYMENT_MIGRATIONS=true bin/rails tests:migrations:prepare_database + + # Migrate up to v4.2.0 breakpoint + bin/rails db:migrate VERSION=20230907150100 + + # Migrate the rest SKIP_POST_DEPLOYMENT_MIGRATIONS=true bin/rails db:migrate bin/rails db:migrate bin/rails tests:migrations:check_database