alcance de rieles donde no
scope :scope_name, -> { where.not(target: 'value')) }
Jolly Jay
scope :scope_name, -> { where.not(target: 'value')) }