Reputation: 521
Mongoid.default_session.database_names
gives me an array of database names. I want to delete a specific database. How would I do that?
Mongoid.default_session.drop()
always seems to drop the default database even if I override the current database using Mongoid.override_database("test_database")
What am I missing?
Upvotes: 1
Views: 2433
Reputation: 2699
Have you tried a combination of Session.use
and Session.drop
?
Examples: http://mongoid.org/en/moped/docs/driver.html
Upvotes: 0