Created
April 11, 2013 14:41
-
-
Save maker-leo/5363920 to your computer and use it in GitHub Desktop.
How to find all questions where the answers user_id IS NULL
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
includes(:answers) | |
.where("user_id IS NULL OR user_id != ?", user_id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment