14516: when calculating the next available username, make sure to take merged
authorWard Vandewege <wvandewege@veritasgenetics.com>
Tue, 20 Nov 2018 18:45:14 +0000 (13:45 -0500)
committerWard Vandewege <wvandewege@veritasgenetics.com>
Tue, 20 Nov 2018 18:45:14 +0000 (13:45 -0500)
commit128b6c914e9ac66744e36b4428c5235f3bde7089
tree6a0181aca9eb207044ab8ef2bad2d942bb64d75b
parent1b7e38873458e9b94830658f384bd39daf6f95cd
14516: when calculating the next available username, make sure to take merged
accounts into consideration - they have usernames too, and we have a unique
index on username in the users table.

refs #14516

Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege@veritasgenetics.com>
services/api/app/models/user.rb