Index on email
This commit is contained in:
parent
61d0485e3d
commit
ba83cb9d29
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ class User
|
||||||
|
|
||||||
######## Making things work ########
|
######## Making things work ########
|
||||||
key :email, String
|
key :email, String
|
||||||
|
ensure_index :email
|
||||||
|
|
||||||
def method_missing(method, *args)
|
def method_missing(method, *args)
|
||||||
self.person.send(method, *args)
|
self.person.send(method, *args)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue