ActiveRecord support for where_not
It’s incredibly annoying to negate things in Active Record! I can do:
Person.where(:name => "Jacob")
but to negate it, I’d have to use a SQL fragment like this:
Person.where("name <> ? ", "Jacob")
I want support:
Person.where(:name.not => "Jacob")
(see: https://github.com/rails/rails/pull/5948)
But barring that, let’s support:
Person.where_not(:name => "Jacob")