Skip to content

Instantly share code, notes, and snippets.

@jamiecobbett
Created February 16, 2016 13:09
Show Gist options
  • Save jamiecobbett/ac0feb92bb9f1e3d9d00 to your computer and use it in GitHub Desktop.
Save jamiecobbett/ac0feb92bb9f1e3d9d00 to your computer and use it in GitHub Desktop.
content_ids = Document.where("slug like 'deleted-%'").pluck(:content_id); nil
File.open('/tmp/whitehall-deleted-content-ids.txt', 'w') { |f| f.write content_ids.join("\n") }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment