From 5cb524ae2fd450b32ed952f8e8ac8f138ab7f14a Mon Sep 17 00:00:00 2001 From: Stephen Binns Date: Tue, 6 Aug 2024 10:34:32 +0100 Subject: [PATCH] Fixup CI step We need to establish a connection to the database manually --- bin/que | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/que b/bin/que index d3c4ad8..148824d 100755 --- a/bin/que +++ b/bin/que @@ -106,6 +106,12 @@ secondary_queues = options.secondary_queues || [] Que.logger ||= Logger.new($stdout) +if options.ci + require "active_record" + + Que.connection = ActiveRecord +end + begin Que.logger.level = Logger.const_get(log_level.upcase) if log_level rescue NameError