X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fmodels%2Fsquare_odbc.js;h=9ba54e686d5119bb44ae779b0041139086544e7d;hb=82faada0a29644118ced31e34f5106a55e493f1a;hp=a8a9bf8b55008a30df68542258d5bfc177dc07be;hpb=963e6e9aad8dc2a51fb8e241a5b15964637704fd;p=motion.git diff --git a/server/models/square_odbc.js b/server/models/square_odbc.js index a8a9bf8..9ba54e6 100644 --- a/server/models/square_odbc.js +++ b/server/models/square_odbc.js @@ -5,7 +5,7 @@ module.exports = function(sequelize, DataTypes) { var SquareOdbc = sequelize.define('SquareOdbc', { name: { type: DataTypes.STRING, - unique: true, + unique: 'name', allowNull: false, validate: { notEmpty: true