Closed dmitrytrager closed 11 years ago
I think you should use mongoid 3.x.x. the 2.x.x index syntax is
index [:name, 1]
the 3.x.x index syntx is
index({name: 1})
and it seems the name is really unnecessary :)
I think, gem should check what mongoid version is used :) Now it allows to use 2 and 3, but index is written only with 3.x.x syntax. What do you think about that?
@dmitrytrager I'll try to fix it , remove the unused index, and mongoid 3 dependency . : )
thanks guys, i've pulled in your changes.
I'm able to use streama with mongoid 2.4.12 and when I'm trying to perform
rake db:mongoid:create_indexes
it says me:It's caused by
Streama::Activity module
content.Also I can not understand, why this module is trying to index
name
field, that was not defined before. Thanks.