开发者

padrino-gen migration create_indexes is not working

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜