where.not(...)
query method will surely find the query.invert_where
query method a welcoming feature. It allows us to easily invert entire queries.[attr]_was
, [attr]_chagned?
, [attr]_previously_was
are some among the helpful methods implemented in ActiveModel::Dirty
module.