From 5fdc7b7ca26e40c24aac7b13cb27262cfbef817b Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 22 May 2019 09:48:03 +1000 Subject: [PATCH] Correct 59012fc0 Logic was flipped here by mistake, oops --- lib/tasks/uploads.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 5186480a449..5791d472a7a 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -245,9 +245,9 @@ def migration_successful?(db, should_raise = false) count = Post.where('baked_version <> ? OR baked_version IS NULL', Post::BAKED_VERSION).count if count > 0 - puts "No posts require rebaking" - else puts "#{count} posts still require rebaking and will be rebaked during regular job" + else + puts "No posts require rebaking" end success