Method: XGen::Mongo::Driver::Collection#drop_indexes
- Defined in:
- lib/mongo/collection.rb
#drop_indexes ⇒ Object
Drop all indexes.
130 131 132 133 |
# File 'lib/mongo/collection.rb', line 130 def drop_indexes # just need to call drop indexes with no args; will drop them all @db.drop_index(@name, '*') end |