Fix ci_projects migration by using the value only from latest row [ci skip]
This is needed, because for some projects we have duplicate ci_projects. This was introduced by lack of DB uniqueness on ci_projects.gitlab_id.
The MR fixes edge case by selecting value from latest.
/cc @yorickpeterse
Fixes: gitlab-org/gitlab-ce#4123