View our GitHub

Please visit sails-docs on GitHub to view documentation on your mobile device.

Edit Page


 * Default model configuration
 * (sails.config.models)
 * Unless you override them, the following properties will be included
 * in each of your models.

module.exports.models = {

  // Your app's default connection.
  // i.e. the name of one of your app's connections (see `config/connections.js`)
  // (defaults to localDiskDb)
  connection: 'localDiskDb'

Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the sails-docs repo. Once we merge it, the changes will be immediately reflected on the website.