Quoting Bharat Ruparel <rails-mailing-list@andreas-s.net>:
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:
feed_items.delete_all
Do it for the class, e.g., FeedItem.delete_all
HTH Jeffrey