From 9ee18f4da63fbd006eea3dd75039c5d5679b77af 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theforeman.org/pipelines/lib/foreman.groovy b/theforeman.org/pipelines/lib/foreman.groovy index c0dad077..97242bdc 100644 --- a/theforeman.org/pipelines/lib/foreman.groovy +++ b/theforeman.org/pipelines/lib/foreman.groovy @@ -18,9 +18,9 @@ def configureDatabase(ruby) { bundleInstall(ruby, '--without=development') archiveArtifacts(artifacts: 'Gemfile.lock') 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=test') 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) {