From decd7ad964021c984f2a68f7f4071762a7432767 Mon Sep 17 00:00:00 2001 From: Nick Benoit Date: Mon, 8 Aug 2022 15:40:24 -0600 Subject: [PATCH] Add order by clause --- lib/que/migrations.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/que/migrations.rb b/lib/que/migrations.rb index 80b775df..9c0ba670 100644 --- a/lib/que/migrations.rb +++ b/lib/que/migrations.rb @@ -42,6 +42,7 @@ def db_version FROM pg_class LEFT JOIN pg_description ON pg_description.objoid = pg_class.oid WHERE relname = 'que_jobs' + ORDER BY pg_class.oid SQL if result.none?