开发者

padrino-gen migration create_indexes is not working

开发者 https://www.devze.com 2023-04-11 00:31 出处:网络
I am trying to use mongoid_fulltext and can\'t seem to get the migrations to create the indexes needed.When I try:

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

精彩评论

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

关注公众号