EE: Add foreign keys to various tables that point to the "projects" table
This is the EE version of CE MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9388. It includes the CE changes (with conflicts resolved), as well as adding some foreign keys on its own to ensure that removing a project won't leave behind orphaned data.
Migration Timings
Migration | Time On Staging |
---|---|
AddEEForeignKeysPointingToProjects | 18 seconds |
AddForeignKeyForApprovals | 34 seconds |
Edited by Yorick Peterse