I triggered a user’s posts deletion.
Since the posts weren’t deleted, I looked at sidekiq and /logs. The deletion process returns an error:
Job exception: PG::ForeignKeyViolation: ERROR: update or delete on table "reviewables" violates foreign key constraint "fk_rails_2fe5fa5cd0" on table "reviewable_notes"
DETAIL: Key (id)=(7870) is still referenced from table "reviewable_notes".
This reviewable item was approved 15 days ago and there are indeed three notes attached to it.
The user who created the flag id 7870 is also the user I’m trying to delete the posts of, which I guess is the issue.
But what do I do now to get rid of this error and delete the user’s account?