From Mongoid Docs :
class Band include Mongoid::Document store_in collection: "artists", database: "music", session: "secondary" end
Use store_in collection: "artist_lookups" in your model. This will allow you to save your Artist model in the artist_lookups collection.
If you want to save the existing data in the artists collection and rename it, I suggest you temporarily close the application, rename the collection to artist_lookups on your MongoDB server and restart the application.
source share