diff --git a/app/controllers/aspect_memberships_controller.rb b/app/controllers/aspect_memberships_controller.rb
index 189c1fb5b4d201000b9ddf7bee09e3797b624a9b..d75832bbfc4f02c4ee9c991c0d6d8cccb3f6a97a 100644
--- a/app/controllers/aspect_memberships_controller.rb
+++ b/app/controllers/aspect_memberships_controller.rb
@@ -75,7 +75,7 @@ class AspectMembershipsController < ApplicationController
     render :text => response_hash.to_json
   end
 
-  rescue_from ActiveRecord::RecordNotUnique do
+  rescue_from ActiveRecord::StatementInvalid do
     render :text => "Duplicate record rejected.", :status => 400
   end
 
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index a10ca23cf6df2db5cd7904d6ebe64eb63c7bc5fd..f2688f8d89b13be228e6e75a0406747f7aab81c7 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -62,7 +62,7 @@ describe User do
     it 'does not overwrite old users with factory' do
       lambda {
         new_user = Factory.create(:user, :id => alice.id)
-      }.should raise_error ActiveRecord::RecordNotUnique
+      }.should raise_error ActiveRecord::StatementInvalid
     end
 
     it 'does not overwrite old users with create' do
@@ -1055,10 +1055,7 @@ describe User do
       it 'returns the clearable fields' do
         user = Factory.create :user
         user.send(:clearable_fields).sort.should == %w{
-          getting_started
-          disable_mail
           language
-          email
           invitation_token
           invitation_sent_at
           reset_password_token
@@ -1077,7 +1074,6 @@ describe User do
           authentication_token
           unconfirmed_email
           confirm_email_token
-          show_community_spotlight_in_stream
         }.sort
       end
     end