summaryrefslogtreecommitdiff
path: root/scripts/drop-database.rb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/drop-database.rb')
-rwxr-xr-xscripts/drop-database.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/drop-database.rb b/scripts/drop-database.rb
new file mode 100755
index 0000000..e263312
--- /dev/null
+++ b/scripts/drop-database.rb
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+require_relative '../../lazar/lib/lazar'
+$mongo.database.drop
+$gridfs = $mongo.database.fs # recreate GridFS indexes
+