How do I destroy all but the newest n records using Rails\' ActiveRecord?
I can get the newest n records using order and limit but how do I destroy the inverse?
Foo.destroy_all(['id NOT IN (?)', Foo.last(1000).collect(&:id)])