From d86e4435d363bcb110cc7e43e6fe461c2d606f08 Mon Sep 17 00:00:00 2001 From: Raul Gracia Date: Tue, 26 Sep 2023 14:38:49 +0100 Subject: [PATCH] Search duplicates by IP Address (#274) * Add pagination and display ip address to duplicates list * Search by ip address --- app/models/duplicate_application.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/duplicate_application.rb b/app/models/duplicate_application.rb index 511627f6..c149e3f8 100644 --- a/app/models/duplicate_application.rb +++ b/app/models/duplicate_application.rb @@ -35,7 +35,8 @@ class DuplicateApplication < ApplicationRecord joins(:applicant).where( "applicants.email_address ILIKE :term OR applicants.passport_number ILIKE :term OR - applicants.phone_number ILIKE :term", + applicants.phone_number ILIKE :term OR + applicants.ip_address ILIKE :term", term:, ) }