bhatt-shashwat

models.js

Apr 2nd, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  12. module.exports.models = {
  13.  
  14.   /***************************************************************************
  15.   *                                                                          *
  16.   * Your app's default connection. i.e. the name of one of your app's        *
  17.   * connections (see `config/connections.js`)                                *
  18.   *                                                                          *
  19.   ***************************************************************************/
  20.   connection: 'gridleMongodbServer',
  21.  
  22.   /***************************************************************************
  23.   *                                                                          *
  24.   * How and whether Sails will attempt to automatically rebuild the          *
  25.   * tables/collections/etc. in your schema.                                  *
  26.   *                                                                          *
  27.   * See http://sailsjs.org/#!/documentation/concepts/ORM/model-settings.html  *
  28.   *                                                                          *
  29.   ***************************************************************************/
  30.   migrate: 'alter'
  31.  
  32. };
Add Comment
Please, Sign In to add comment