Mongoid provides the following rake tasks when used in a Rails 3 environment:
db:create: Exists only for dependency purposes, does not actually
do anything.
db:create_indexes: Reads all index definitions from the models and
attempts to create them in the database.
db:drop: Drops all collections in the database with the exception of
the system collections.
db:migrate: Exists only for dependency purposes, does not actually
do anything.
db:schema:load: Exists only for framework dependency purposes, does
not actually do anything.
db:seed: Seeds the database from db/seeds.rb
db:setup: Creates indexes and seeds the database.
db:test:prepare: Exists only for framework dependency purposes, does
not actually do anything.
Rake Tasks
Rake Tasks