Skip to content
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

Migration should have on_delete: :delete_all for user reference #168

Open
danschultzer opened this issue Apr 24, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@danschultzer
Copy link
Collaborator

The Ecto migration mix generator has been lifted from the Ecto library where on_delete: :nothing is unfortunately hardcoded:

https://github.com/danschultzer/pow/blob/v1.0.20/lib/pow/extension/ecto/schema/migration.ex#L14

In the case of user identities it really should be on_delete: :delete_all as recommended in the Ecto docs. I'll have to rework the mix generator to permit defaults being passed along with associations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant