devise - Deleting a User record from rails console -


We have some test data inside our production database and I am trying to clean it.

I was removing some test email addresses directly from the console

  user. ((Email = & gt; "asdf@example.com") here. First.delete  

This record has been deleted

Now when I try to create another account with this email address, it says that Email has already been taken.

I have done this many times in my Dev environment, and it has acted like a magic

I know that I never get a record removed from the console directly Should, but this is a closed scenario and I'm curious why this is not working.

Please help me with this.

Are you using something like a gem in production, which will soften the user's record ? If so, try User.with_deleted.where (: email = & gt; "asdf@example.com") and if any result gives the user's email address in a non-existence change it.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -