mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-27 13:36:06 +10:00
Merge branch 'fix_ldap_migrator' into 'master'
Fix LDAP migrator to new_syntax See merge request !362
This commit is contained in:
@@ -11,9 +11,9 @@ namespace :gitlab do
|
||||
puts "setting provider to #{provider}"
|
||||
unmigrated_group_links.update_all provider: provider
|
||||
|
||||
unmigrated_ldap_users = User.where(provider: 'ldap')
|
||||
puts "found #{unmigrated_ldap_users.count} unmigrated LDAP users"
|
||||
unmigrated_ldap_identities = Identity.where(provider: 'ldap')
|
||||
puts "found #{unmigrated_ldap_identities.count} unmigrated LDAP users"
|
||||
puts "setting provider to #{provider}"
|
||||
unmigrated_ldap_users.update_all provider: provider
|
||||
unmigrated_ldap_identities.update_all provider: provider
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user