You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this gem compatible with Rails 6. Also I am facing issues while indexing. In before action call for soft delete method the indexing doesn't work and shows all the records including the deleted ones.
The text was updated successfully, but these errors were encountered:
This isn't a problem with Rails 6. The deleted record with email "[email protected]" is still in your users table, with its paranoia column (probably deleted_at) set. It looks like you're using postgres, so you can solve this with a partial index, instead of create unique index index_users_on_email on users (email), try create unique index index_users_on_email_paranoid on users (email) where deleted_at is null or similar.
I used Paranoia gem for Rails 6. And it isn't working as expected. It passes the model level validations for unique columns.
PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_users_on_email" DETAIL: Key (email)=([email protected]) already exists.
Is this gem compatible with Rails 6. Also I am facing issues while indexing. In before action call for soft delete method the indexing doesn't work and shows all the records including the deleted ones.
The text was updated successfully, but these errors were encountered: