Usually for empty ruby arrays, you would use a value list with a single NULL value, but this doesn't work correctly for NOT IN, since you want a predicate that is always true but a NOT IN (NULL) is a predicate is always false.