Method: MongoThing.drop_non_system_collections

Defined in:
lib/mongo_thing.rb

.drop_non_system_collectionsObject



61
62
63
# File 'lib/mongo_thing.rb', line 61

def drop_non_system_collections
  db.collections.each{|col| col.drop unless col.name =~ /^system\./ } if db
end