From 5dfc1011fdddacefb64f9b4996d95727bf69dac7 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Wed, 11 Sep 2024 12:25:02 +0200 Subject: [PATCH] explicitly migrate the test DB --- theforeman.org/pipelines/lib/foreman.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theforeman.org/pipelines/lib/foreman.groovy b/theforeman.org/pipelines/lib/foreman.groovy index c0dad077..367824d1 100644 --- a/theforeman.org/pipelines/lib/foreman.groovy +++ b/theforeman.org/pipelines/lib/foreman.groovy @@ -20,7 +20,7 @@ def configureDatabase(ruby) { bundleExec(ruby, 'rake db:drop >/dev/null 2>/dev/null || true') bundleExec(ruby, 'rake db:create --trace') bundleExec(ruby, 'rake db:create --trace RAILS_ENV=production') - bundleExec(ruby, 'rake db:migrate --trace') + bundleExec(ruby, 'rake db:migrate --trace RAILS_ENV=test') } def cleanup(ruby) {