Sha256: 0aae035cf2573e8a13bdb9ca1ed5f80a23f60415ecaa59503b1c48df7d1371b4
Contents?: true
Size: 245 Bytes
Versions: 31
Compression:
Stored size: 245 Bytes
Contents
module MongoDoc module DatabaseCleaner extend self def clean_database MongoDoc::Connection.database.collections.select {|c| c.name !~ /^system/}.each {|c| MongoDoc::Connection.database.drop_collection(c.name)} end end end
Version data entries
31 entries across 31 versions & 1 rubygems