On rails 6 with postgres on heroku, I am looking for a simple method to perform a search with or without latin character.
For example: the user enters "gérard" and the query should find all result with "gérard" ou "gèrard"
or
the user enters "gerard" and the query should return result with "gérard", ...
Invoices.where("withoutlatincharacter(name) like ?", "%#{"gérard"}%"))
What should I put instead of withoutlatincharacter
?