Use mongodb sparse indexing for user emails

This commit is contained in:
Berkeley Martinez
2015-06-04 14:21:01 -07:00
parent 40e8b61fbf
commit 0ac664c9ae

View File

@ -8,7 +8,12 @@
"type": "string",
"lowercase": true,
"trim": true,
"index": {
"mongodb": {
"unique": true,
"sparse": true
}
}
},
"password": "string",
"facebook": "string",