I have a model User that has_one Email and has_many Friends
If the email is a field in the User model, I can use the following to get all users who's email is nil: User.where("email IS NULL")
However, I don't know how I can do this if the email is in a separate Email model where this model belongs_to User with a user_id key.
Also, if I want to find all users with no friends, how can I do this if User has_many Friends and Friends belongs_to User