Skip to content

Commit

Permalink
Merge pull request #1128 from alphagov/cleanup-whitehall-fe
Browse files Browse the repository at this point in the history
Add temporary rake task to cleanup Whitehall Frontend documents
  • Loading branch information
brucebolt authored Aug 21, 2023
2 parents d3d48e6 + 37226dc commit 1d0f291
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/tasks/temp_cleanup_whitehall_frontend.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
desc "Removes all legacy content items that were rendered by Whitehall Frontend"
task cleanup_whitehall_frontend: :environment do
ContentItem.where(rendering_app: "whitehall-frontend").delete_all
end

0 comments on commit 1d0f291

Please sign in to comment.