diff --git a/goss-cleanup.rb b/goss-cleanup.rb index 06a7c31..3bcf820 100644 --- a/goss-cleanup.rb +++ b/goss-cleanup.rb @@ -37,10 +37,10 @@ class GossamerForumsCleaner topic = Topic.find_by(id: field.topic_id) if topic puts "Deleting topic #{topic.title} (ID: #{topic.id})" - topic.posts.each do |post| - puts "Deleting post #{post.id} in topic #{topic.id}" - post.destroy - end +# topic.posts.each do |post| +# puts "Deleting post #{post.id} in topic #{topic.id}" +# post.destroy +# end topic.destroy end end @@ -77,7 +77,7 @@ class GossamerForumsCleaner def perform_cleanup puts "Cleanup beginning!" # cleanup_messages - cleanup_posts +# cleanup_posts cleanup_topics # cleanup_categories # cleanup_users