In my sail application, I edit the config / models.js file as follows to clear the database when the application is up.
migrate: 'drop',
connection: 'mongodb'
But when I try to run the application, it displays the following error.
A hook (`orm`) failed to load!
error: Error (E_UNKNOWN) :: Encountered an unexpected error
MongoError: Index with name: _id_ already exists with different options
I use sails version 0.10.5, any help would be appreciated.
source
share