Hi,
i have a quick question
How can we qualify column in where
clause?
I want to use columns from joined table in where
clause, but i can’t get how it could be easily done
The only thing i found after going through docs and forum is
users.join(:tasks).where(Sequel.lit('users.id = 1')).to_a
isn’t there something like
users.join(:tasks).where('users.id': 1).to_a
?
I cannot get old notation users__id
to work, i think it’s not supported anymore, am i right?