If you use the exclude method with an empty ruby array as the value, instead of using a NOT IN (NULL) predicate, Sequel will use a predicate that is always true, which is what you want.