Quoting Bharat Ruparel <email@example.com>:
I have two tables: feeds and feed_items in a one-to-many relationship.
I selecting feeds from the feeds table and populating "many" items in
the feed_items table for further processing. This happens in a loop.
Before starting to populate feed_items for each feed read in, I execute
the following statement to wipe feed_items table clean:
Do it for the class, e.g., FeedItem.delete_all