Open lucasbesen opened 4 years ago
You'll need to update the foreign key constraint so the associations will be deleted, like:
add :application_id, references(:oauth_applications, on_delete: :delete_all, type: binary_id)
By default ExOauth2Provider just adds on_delete: :nothing
. I think it should be :delete_all
or :nilify_all
instead. I'll think about which makes more sense and create a PR.
I'm having this error trying to delete a application