Permalink
Browse files

collection('msgs').drop_index('_id_') fail

MongoDB won't let me remove that index :-(
  • Loading branch information...
1 parent 6bbaeb1 commit 844a95a6f0294d547fa3c342fda8362040b1cf85 @jmettraux committed Feb 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/ruote/mon/storage.rb
View
@@ -47,6 +47,9 @@ def initialize(mongo_db, options={})
@db = mongo_db
@options = options
+ #collection('msgs').drop_index('_id_')
+ # can't do that...
+
(TYPES - %w[ msgs schedules ]).each do |t|
collection(t).ensure_index('_wfid')
collection(t).ensure_index([ [ '_id', 1 ], [ '_rev', 1 ] ])

0 comments on commit 844a95a

Please sign in to comment.