版本库邮箱用户名和trustie不一致的迁移

This commit is contained in:
huang 2018-06-14 19:29:29 +08:00
parent dec2155bb5
commit e2a130001c
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ namespace :gitlab do
users.find_each do |user|
if g.user(user.gid).try(:username) != user.login
puts "start"+ "#{user.id}"
g.edit_user(user.gid, :username => user.login)
end
end
end