From f1720c111f4f38825f1d66ee681c19f840ad34d9 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 25 Sep 2023 12:26:42 +0200 Subject: [PATCH] Fixes #36774 - count db:abort_if_pending_migrations as setup task this avoids loading settings and friends just to check if a migration is required --- lib/foreman.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/foreman.rb b/lib/foreman.rb index 0ff7e8ced5e..ccb5e65b270 100644 --- a/lib/foreman.rb +++ b/lib/foreman.rb @@ -23,7 +23,7 @@ def self.in_rake?(*rake_tasks) end def self.in_setup_db_rake? - in_rake?('db:create', 'db:migrate', 'db:drop') + in_rake?('db:create', 'db:migrate', 'db:drop', 'db:abort_if_pending_migrations') end def self.pending_migrations?