seancribbs/ripple — pull request #229 by seancribbs (2011-10-24 23:54:03+00:00)
Title: Add secondary indexes to Document and EmbeddedDocument

* Add indexes using `:index => [true|'bin'|'int']` on a property
* Embedded documents get their indexes folded into the root Document.
* For time-related types, you can choose the index type: 'bin' will produce indexes in `Ripple.date_format`, 'int' will produce milliseconds since epoch.
* `timestamps!` properties can have indexes by passing the `:index` option.

Addresses most of #228, without picking a query API yet.