I am trying to use mongoid_fulltext and can't seem to get the migrations to create the indexes needed. When I try:
padrino-gen mig开发者_Go百科ration create_indexes
I get a result
apply orms/mongoid
But when I empty out a document and rebuild it, the new indexes do not show up. Am I doing something wrong?
That isn't the correct way to execute the command. It is something more like padrino rake mongoid:create_indexes
. If you generated your project with mongoid as the ORM component, that should work. Run padrino rake -T
to see the available tasks.
精彩评论