/**
 * Global adapter config
 * 
 * The `adapters` configuration object lets you create different global "saved settings"
 * that you can mix and match in your models.  The `default` option indicates which 
 * "saved setting" should be used if a model doesn't have an adapter specified.
 *
 * Keep in mind that options you define directly in your model definitions
 * will override these settings.
 *
 * For more information on adapter configuration, check out:
 * http://sailsjs.org/#documentation
 */

module.exports.adapters = {

  // If you leave the adapter config unspecified 
  // in a model definition, 'default' will be used.
  'default': 'disk',

  // Persistent adapter for DEVELOPMENT ONLY
  // (data is preserved when the server shuts down)
  disk: {
    module: 'sails-disk'
  },

  // MySQL is the world's most popular relational database.
  // Learn more: http://en.wikipedia.org/wiki/MySQL
  myLocalMySQLDatabase: {

    module: 'sails-mysql',
    host: 'YOUR_MYSQL_SERVER_HOSTNAME_OR_IP_ADDRESS',
    user: 'YOUR_MYSQL_USER',
    // Psst.. You can put your password in config/local.js instead
    // so you don't inadvertently push it up if you're using version control
    password: 'YOUR_MYSQL_PASSWORD', 
    database: 'YOUR_MYSQL_DB'
  },

  postgres: {
    config: {
        url: 'postgres://username:password@hostname:port/database',
        pool: false,
        ssl: false
    }
  }
};

@@ -497,16 +497,54 @@
 on%0A */%0A%0A
+var secrets = require('../secrets');%0A%0A
 module.e
@@ -680,20 +680,24 @@
 ault': '
-disk
+postgres
 ',%0A%0A  //
@@ -1319,94 +1319,72 @@
     
-config: %7B%0A        url: 'postgres://username:password@hostname:port/database',%0A  
+module: 'sails-postgresql',%0A    url: secrets.postgresUrl(),%0A
     
-  
 pool
@@ -1392,20 +1392,16 @@
  false,%0A
-    
     ssl:
@@ -1411,14 +1411,8 @@
 lse%0A
-    %7D%0A
   %7D%0A

Change db config to use postgres. Use secret config file to load connection settings.