Skip to content

Instantly share code, notes, and snippets.

@jamesridgway
Created February 11, 2021 08:35
Show Gist options
  • Save jamesridgway/92c5e3b6348bc0d7be9038e5681d5f65 to your computer and use it in GitHub Desktop.
Save jamesridgway/92c5e3b6348bc0d7be9038e5681d5f65 to your computer and use it in GitHub Desktop.
Mongoid drop all collections - use with caution
Mongoid.default_client.collections.each(&:drop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment