From ba83cb9d2936c6f45c96ba0d29f126adeee18490 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 17 Aug 2010 16:24:52 -0700 Subject: [PATCH] Index on email --- app/models/user.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/user.rb b/app/models/user.rb index e8a087d85..a3144cb9a 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -21,6 +21,7 @@ class User ######## Making things work ######## key :email, String + ensure_index :email def method_missing(method, *args) self.person.send(method, *args)