🕵️♀️ Task
You can negate criteria with where.not
. Like where
, where.not
is used for filtering a collection of records down using various criteria. Most commonly, we pass a Hash
argument. The key is the column you’re searching in and the value is what you’re trying to exclude from the results.