Created
February 16, 2016 13:09
-
-
Save jamiecobbett/ac0feb92bb9f1e3d9d00 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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