I can do Post.delete_all to delete all my posts, but what if I want to delete all posts, comments, blogs, etc.?
Post.delete_all
How do I iterate over all my models and
This will work also for Rails 4
(ActiveRecord::Base.connection.tables - ['schema_migrations']).each do |table| table.classify.constantize.destroy_all end