From 15c1486e7c463547a6ce366c8321532ab1f0909c Mon Sep 17 00:00:00 2001 From: saint Date: Mon, 16 Sep 2024 14:23:29 +1000 Subject: [PATCH] v0.3 Ready for actual soft-delete run on live-prod --- softdeldeletedposts.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/softdeldeletedposts.rb b/softdeldeletedposts.rb index 737f702..aa08fc1 100644 --- a/softdeldeletedposts.rb +++ b/softdeldeletedposts.rb @@ -1,7 +1,7 @@ # Federated Computer, Inc. # David Sainty 2024 A.D. # Gossamer Threads to Discourse -- Soft Deletion of Marked-As-Deleted Posts -# v0.2 Address where due to import issues there are some stray PostCustomField records for Posts that do not exist. +# v0.3 Ready for actual soft-delete run on live-prod require 'mysql2' require 'active_record' @@ -60,7 +60,7 @@ class GossamerForumsSoftDelDeletedPosts < ImportScripts::Base ## post.deleted_by_id = deleted_by_id ## post.save puts "... actual deleted_at step" -### post.update(deleted_at: Time.now, deleted_by_id: deleted_by_id) + post.update(deleted_at: Time.now, deleted_by_id: deleted_by_id) else puts "SoftDelDeletedPosts: Post with id: #{post.id} is already soft deleted." end