I have a rails app in which i am using devise and paranoia gems.
I have a users table in postgres db which has unique validation on email column.
I am using paranoia for soft delete, issue is when i delete a user and then tey to create a user using the email of the deleted user it throws an error PG::UniqueViolation: ERROR
.
I have read about this and know that this could be solved using partial index feature of rails.
http://scottsmerchek.com/2015/08/03/taking-the-d-out-of-crud/
https://devcenter.heroku.com/articles/postgresql-indexes#partial-indexes
How do i implement this?
Sorry for bad formatting, typing from mobile.