Add migration to delete orphaned security policy bot users

What does this MR do and why?

Security policy bot users can become orphaned when projects are deleted, leaving unused database records. This batched background migration safely removes these orphaned bots that have no project memberships or ongoing ghost user migrations to clean up the database.

We have added a cron worker to regularly delete those users in !196257 (merged) This migration should take care of the initial cleanup

References

Screenshots or screen recordings

Before After

How to set up and validate locally

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #554741 (closed)

Merge request reports

Loading