Is there any way in Rails 5 that I can use the opposite (negation) of a scope? For example, given I have the following scope
scope :missing_coordinates, -> { where(latitude: [nil, '']).or(where(longitude: [nil, ''])) }
is there any way I can use the opposite of that scope like:
Places.not(missing_coordinates)
which would return the ones that have both the latitude and longitude?