How can I find(:all) on a parent model only for objects where a has_one
child is nil?
class Parent < ActiveRecord::Base
class Child < ActiveRecord::Base
So, I want to do:
object = Parent.find(:all) where the only rows returned match
I want this to happen on the database level because we will be dealing
thousands of rows. Is there an ActiveRecord way to handle this, or am I
going to have to break out to find_by_sql for this?