From 58588d22b15313fa34fcc3daa175c56e90dffd39 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 3 Oct 2021 20:49:33 +0200 Subject: [PATCH] use .where.not instead of in-query condition for user confirm date --- app/controllers/static_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index fe888207..c98501a2 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -18,7 +18,7 @@ class StaticController < ApplicationController def about @users = User - .where('confirmed_at IS NOT NULL') + .where.not(confirmed_at: nil) .where(permanently_banned: false) .where(banned_until: nil) .where('answered_count > 0')