From 7f22c86dd6f50ed4432961a8e19bcc9293a83dc9 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Thu, 7 Nov 2024 13:42:37 +0100 Subject: [PATCH] explicitly migrate the test DB, also in old shell jobs Fixes: f7ed43f4fb2b6d733834090258cf02c95b140bc3 --- theforeman.org/scripts/test/test_develop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theforeman.org/scripts/test/test_develop.sh b/theforeman.org/scripts/test/test_develop.sh index 6b67f8ee..2eba718c 100644 --- a/theforeman.org/scripts/test/test_develop.sh +++ b/theforeman.org/scripts/test/test_develop.sh @@ -45,7 +45,7 @@ npm install --no-audit --legacy-peer-deps # Create DB first in development as migrate behaviour can change bundle exec rake db:drop >/dev/null 2>/dev/null || true -bundle exec rake db:create db:migrate --trace +bundle exec rake db:create db:migrate --trace RAILS_ENV=test bundle exec rake pkg:generate_source jenkins:unit jenkins:integration TESTOPTS="-v" --trace