no longor drop_indexes when we drop_collection
This commit is contained in:
parent
0aec898596
commit
a2898effb4
|
@ -239,8 +239,6 @@ module XGen
|
||||||
def drop_collection(name)
|
def drop_collection(name)
|
||||||
return true unless collection_names.include?(full_coll_name(name))
|
return true unless collection_names.include?(full_coll_name(name))
|
||||||
|
|
||||||
coll = collection(name)
|
|
||||||
coll.drop_indexes # Mongo requires that we drop indexes manually
|
|
||||||
ok?(db_command(:drop => name))
|
ok?(db_command(:drop => name))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue