2013-05-23から1日間の記事一覧
MySQLでいうtruncateの方法を探していたんだが、 Mongoid.master.collections. select { |c| c.name != 'system.indexes' }.each(&:drop) endはRSpec.configureの中でしか使えないようで、とりあえずHoge.with(collection: "fuga_collection").collection.dr…
MySQLでいうtruncateの方法を探していたんだが、 Mongoid.master.collections. select { |c| c.name != 'system.indexes' }.each(&:drop) endはRSpec.configureの中でしか使えないようで、とりあえずHoge.with(collection: "fuga_collection").collection.dr…