Guard legacy migration joins against duplicate usernames