norman/friendly_id — Issue #236: ActiveRecord::RecordNotUnique in Devise::RegistrationsController#create
Author: jerefrer
Created: 2012-02-23 13:38:40+00:00
State: open

I've just updated my app from Rails 3.1 to Rails 3.2 and I'm now getting this error when trying to sign up with an already existing email.

ActiveRecord::RecordNotUnique in Devise::RegistrationsController#create
Mysql2::Error: Duplicate entry '********@gmail.com' for key 'index_users_on_email'

I realized that this was solved by removing this from my user model :

extend FriendlyId
friendly_id :username, :use => :slugged

I saw [this issue](https://github.com/norman/friendly_id/issues/152) which may be related but I think it is really related to 3.2 so I prefer to make a new one.

Thoughts ?