Open dayhaysoos opened 10 years ago
I'm guessing you already found the answer, but here how it is done in 10x. You set up your adapter configurations in connections.js the same way that Irl is doing it. Then, to set the default connection, you type: connection: 'someMongodbServer' or whatever your adapter name is in config/models.js. To use different adapters(database or tables) in a single model, write connection: 'someMongodbServer' in your api/models/User.js file for example.
Hello Irl,
I love everything about sails, and the sails casts, and you. Thank you SO much for the work you've done, it's been very helpful for my growth as a coding noob.
So, I'm on the part where we switch over to mongo and you use the adapter.js file to set it up. Sails doesn't make an adapter.js, I read that you moved the adapter to local.js but things are set up a little differently than what is shown in your video.
Is there an update on the github that I'm missing or is this supposed to work the same way?