2013-05-23 Mongoidでcollectionをdropする Rails MySQLでいうtruncateの方法を探していたんだが、 Mongoid.master.collections. select { |c| c.name != 'system.indexes' }.each(&:drop) endはRSpec.configureの中でしか使えないようで、とりあえずHoge.with(collection: "fuga_collection").collection.dropいいのかこれで・・・