models.js 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * Default model configuration
  3. * (sails.config.models)
  4. *
  5. * Unless you override them, the following properties will be included
  6. * in each of your models.
  7. *
  8. * For more info on Sails models, see:
  9. * http://sailsjs.org/#/documentation/concepts/ORM
  10. */
  11. module.exports.models = {
  12. /***************************************************************************
  13. * *
  14. * Your app's default connection. i.e. the name of one of your app's *
  15. * connections (see `config/connections.js`) *
  16. * *
  17. ***************************************************************************/
  18. // connection: 'localDiskDb',
  19. /***************************************************************************
  20. * *
  21. * How and whether Sails will attempt to automatically rebuild the *
  22. * tables/collections/etc. in your schema. *
  23. * *
  24. * See http://sailsjs.org/#/documentation/concepts/ORM/model-settings.html *
  25. * *
  26. ***************************************************************************/
  27. migrate: 'safe'
  28. };