I have a schema with three tables: *Number*, *Article*, and *ArticleNumber*.
*ArticleNumber* is a join table. Some records in *Number* are associated
with *Article* records via the join table, and some are not. I have
defined a *many_to_many *association that allows me to filter by *Number*s
having one of a particular set of *Articles. *But, short of writing raw
SQL or doing *Number.all.select {...}*, how do I filter for *Number* records
that have no corresponding article? Neither of these work:
*Number.filter(Article: nil)*
* Number.filter(Article: [])*
*
*
Thanks.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.