title: How do you add indexes to your Mongoid database in Padrino?
body: <p>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:</p>
  
  <p><a href="https://github.com/padrino/padrino-framework/commit/ec8a267f477ac4dc88a66c84fffb17ac26190a22" rel="nofollow">https://github.com/padrino/padrino-framework/commit/ec8a267f477ac4dc88a66c84fffb17ac26190a22</a></p>
  
  <p>And it seems that they should be accessed by doing this, but I get an error:</p>
  
  <pre><code>$ padrino-gen orm::mongoid --help
  =&gt; Problem loading ./config/boot.rb
  =&gt; 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!'
  </code></pre>
  
  <p>Any idea of how to run a rake task to add indexes in Padrino?</p>
  
  <p>Thanks!</p>