title: TypeError: s.replace is not a function
body: <p><strong>Env:</strong></p>
  
  <ul>
  <li>Postgres: 10.2</li>
  <li>Node: 6.11.0 </li>
  <li>CLI: 2.4.0</li>
  <li>ORM: 2.1.3</li>
  </ul>
  
  <p><strong>Model:</strong></p>
  
  <pre><code>'use strict';
  module.exports = function(sequelize, DataTypes) {
      var test = sequelize.define('test', {
          id: DataTypes.UUID,
          type: DataTypes.STRING,
          data: DataTypes.JSON,
      }, {
          'createdAt': {
              type: Sequelize.DATE(3),
              defaultValue: Sequelize.literal('CURRENT_TIMESTAMP(3)'),
          },
          'updatedAt': {
              type: Sequelize.DATE(3),
              defaultValue: Sequelize.literal('CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3)'),
          },
          classMethods: {
              associate: function(models) {
                  // associations can be defined here
              }
          }
      });
      return test;
  }
  </code></pre>
  
  <p><strong>Migration:</strong></p>
  
  <pre><code>'use strict';
  module.exports = {
      up: function(queryInterface, Sequelize) {
          return queryInterface.addColumn('test', {
              test_col: {
                  type: Sequelize.JSONB
              }
          });
      },
      down: function(queryInterface, Sequelize) {
          return queryInterface.removeColumn('test', 'test_col');
      }
  };
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>TypeError: s.replace is not a function
      at Object.removeTicks (/node_modules/sequelize/lib/utils.js:329:14)
      at Object.addTicks (/node_modules/sequelize/lib/utils.js:325:29)
      at Object.quoteIdentifier (/node_modules/sequelize/lib/dialects/postgres/query-generator.js:835:22)
      at Object.addColumnQuery (/node_modules/sequelize/lib/dialects/postgres/query-generator.js:182:19)
      at QueryInterface.module.exports.QueryInterface.addColumn 
  </code></pre>