EE port of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/28999 + apply changes to PackageFile model
PackageFile