I have a simple association like:
class User < ActiveRecord::Base
has_many :photos
end
class Photo < ActiveRecord::Base
belongs_to :user
# Photo fields => id, image, photo_type
end
In the photo model photo_type
value can be in 'personal', family' or 'official'.
What is the best way to get all users either have NO photos OR photo_type != 'personal'(if the user has photos)?
I'd appreciate any help. Thanks!