#eager_load() work here? Or is there differing behavior that would make that a bad idea? My understanding is that
LEFT OUTER JOIN.
…and as I keep watching the video my question is answered
This is just a reminder that Rails 5, adds a
Obviously these still good demonstrations of how to write the minimum SQL that you need, just wanted to point out that for these common situations, there are now methods available.
Hello! I’m a bit confused about the first challenge. Wouldn’t this have the same effect without the join?
Person.where("manager_id != ? OR manager_id IS NULL", Person.find_by!(name: "Eve"))
I’m probably missing something here.