-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash after trying to create a user with email still present in soft deleted scope #130
Comments
We should add a uniqueness validation on |
Instead of a unique index? |
In addition to :) All unique indexes should have a corresponding validation, so the error can be caught earlier. IMHO Rails should have integrated something like https://github.com/SchemaPlus/schema_validations long ago. |
Sounds like a plan. |
how about using |
Yeah I was thinking about that too, I see a few different options:
Definitely something to discuss with the customer :) Was there a specific motivation for using the |
I haven't used it yet but it looks solid, definitely something we could do if we have the time. |
That looks like the best solution to me. Especially because the newly recreated user will also have all its relations still in place. |
The text was updated successfully, but these errors were encountered: