I'm looking to do something like
User.select(...).where(:name != nil)
without writing something like
User.select(...).to_a.find_all {|user| user.name}
I can select for null values, but not for non-null. Is there a trick, or outside Sequel's domain?
.where('name IS NOT NULL'.lit)
would. – Convertite