aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/user.js')
-rw-r--r--server/models/user.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/user.js b/server/models/user.js
index 36ed723cc..6cb9eec3f 100644
--- a/server/models/user.js
+++ b/server/models/user.js
@@ -40,7 +40,8 @@ module.exports = function (sequelize, DataTypes) {
40 { 40 {
41 indexes: [ 41 indexes: [
42 { 42 {
43 fields: [ 'username' ] 43 fields: [ 'username' ],
44 unique: true
44 } 45 }
45 ], 46 ],
46 classMethods: { 47 classMethods: {