I have a list of objects called checkins
that lists all the times a user has checked into something and another set of objects called flagged_checkins
that is certain checkins that the user has flagged. They both reference a 3rd table called with a location_id
I'd like to take the two lists of objects, and remove any of the checkins
which have a location_id in flagged_checkins
How do I compare these sets and remove the rows from 'checkins'