Created
April 19, 2017 10:22
-
-
Save willwright82/2b6244d042418ba455cb937306a29933 to your computer and use it in GitHub Desktop.
Match lowercase postgresql query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user.email = "UsERname@DOMain.com" | |
User.where("LOWER(email) = LOWER(?)", user.email).first |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment