What is the best way to set up an index or configure a capped collections in a Rails project?
From what I've found, it seems that a good way would be to keep this configuration in an initializer.
The command for setting up an index is ModelName.ensure_index :key
, but what is the command for a capped collection?