dimanche 28 juin 2015

rake db:seed -> Mongoid::Errors::NoSessionConfig:

I am building an application in ROR using SQLite.

In the project I include a gem which has run time dependency in Mongoid.

However for my case, I do not use mongoid or any mongodb.

When I am running rake db:seed which I use to fill the fields in my sql database I receive the specific error:

rake aborted!

Mongoid::Errors::NoSessionConfig: Problem: No configuration could be found for a session named 'default'. Summary: When attempting to create the new session, Mongoid could not find a session configuration for the name: 'default'. This is necessary in order to know the host, port, and options needed to connect. Resolution: Double check your mongoid.yml to make sure under the sessions key that a configuration exists for 'default'. If you have set the configuration programatically, ensure that 'default' exists in the configuration hash.

Aucun commentaire:

Enregistrer un commentaire