I need to be able to add indexes to my Mongoid database in a Padrino project. I saw that they added rake tasks for this here:
https://github.com/padrino/padrino-framework/commit/ec8a267f477ac4dc88a66c84fffb17ac26190a22
And it seems that they should be accessed by doing this, but I get an error:
$ padrino-gen orm::mongoid --help
=> Problem loading ./config/boot.rb
=> Invalid option :index provided to relation :features. Valid options are: as, autosave, dependent, foreign_key, order, class_name, extend, inverse_class_name, inverse_of, name, relation, validate.
/Users/jeremysmith/.rvm/gems/ruby-1.9.2-p290/gems/mongoid-2.2.1/lib/mongoid/relations/options.rb:41:in `block in validate!'
Any idea of how to run a rake task to add indexes in Padrino?
Thanks!