not(opts, *rest)
Instance Public methods
Returns a new relation expressing WHERE + NOT condition according to the
conditions in the arguments.
not accepts conditions as a string, array, or hash. See where
for more details on each format.
User.where.not("name = 'Jon'")
# SELECT * FROM users WHERE NOT (name = 'Jon')
User.where.not(["name = ?", "Jon"])
# SELECT * FROM users WHERE NOT (name = 'Jon')
User.where.not(name: "Jon")
# SELECT * FROM users WHERE name != 'Jon'
User.where.not