-
-
Save handshake-engineering-blog/81409463d0b397fdbf6a20e488425f10 to your computer and use it in GitHub Desktop.
1801126175_1
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.joins(:user_email_addresses).find_by( | |
<<~SQL, | |
user_email_addresses.email_address = ? | |
AND ( | |
user_email_addresses.confirmed | |
OR user_email_addresses.institution_managed | |
) | |
SQL | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment