Skip to content

Commit

Permalink
Search duplicates by IP Address (#274)
Browse files Browse the repository at this point in the history
* Add pagination and display ip address to duplicates list

* Search by ip address
  • Loading branch information
raul-gracia authored Sep 26, 2023
1 parent 7a3e5f2 commit d86e443
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/duplicate_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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:,
)
}
Expand Down

0 comments on commit d86e443

Please sign in to comment.