From f7ed43f4fb2b6d733834090258cf02c95b140bc3 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) {