mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Aad a schoolName index for later querying of our top schools
This commit is contained in:
parent
0539f796a7
commit
163a701188
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ UserSchema.index({'simulatedBy': 1})
|
|||
UserSchema.index({'slug': 1}, {name: 'slug index', sparse: true, unique: true})
|
||||
UserSchema.index({'stripe.subscriptionID': 1}, {unique: true, sparse: true})
|
||||
UserSchema.index({'siteref': 1}, {name: 'siteref index', sparse: true})
|
||||
#UserSchema.index({'schoolName': 1}, {name: 'schoolName index', sparse: true}) # Will we need this?
|
||||
UserSchema.index({'schoolName': 1}, {name: 'schoolName index', sparse: true})
|
||||
|
||||
UserSchema.post('init', ->
|
||||
@set('anonymous', false) if @get('email')
|
||||
|
|
Loading…
Reference in a new issue