gitlabhq/gitlabhq — pull request #3999 by babatakao (2013-05-20 11:43:46+00:00)
Title: Migrate old duplicate deploy-key to relation.

In the older version, duplicate deploy keys between projects were allowed.
Since 5.2, it is implemented by deploy_keys_projects relationship.
But the above difference was not automatically migrated.

This rake task find the duplicate deploy keys,
and remove excluding first one, then creates a relationship.