pyc-website

main website for pyc inc.

git clone https://9o.is/git/pyc-website.git

commit e37665f00817aa41a21bda8c6f5afd81517e4914
parent 1161934676664959a1b028e7e1a4c0bc16bbdff9
Author: Jul <jul@9o.is>
Date:   Wed,  3 Sep 2014 00:08:30 -0400

added mongodb old version to index addresses array with unique and sparse options

Diffstat:
Msrc/main/scala/inc/pyc/model/User.scala | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/scala/inc/pyc/model/User.scala b/src/main/scala/inc/pyc/model/User.scala @@ -103,7 +103,9 @@ object User extends User with ProtoAuthUserMeta[User] with RogueMetaRecord[User] ensureIndex((email.name -> 1), ("unique" -> true)) ensureIndex((phone.name -> 1), ("unique" -> true) ~ ("sparse" -> true)) - ensureIndex((addresses.name -> 1), ("unique" -> true) ~ ("sparse" -> true)) + + // look at https://jira.mongodb.org/browse/SERVER-3934 + ensureIndex((addresses.name -> 1), ("unique" -> true) ~ ("sparse" -> true) ~ ("v" -> 0)) def findByEmail(in: String): Box[User] = find(email.name, in)