diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-10-02 15:00:50 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-10-07 10:28:13 -0700 |
commit | 714f264d62c5d2a45efc4b013f2fca1eb7eff1f1 (patch) | |
tree | 486a77e17a856c5145dd99a5a40197bef097fd93 /db | |
parent | a6a764f73debb41005fbfe7e902c9f51e2bbcff1 (diff) | |
download | gitlab-ce-714f264d62c5d2a45efc4b013f2fca1eb7eff1f1.tar.gz |
Rename method to `to_normalized_s`
Diffstat (limited to 'db')
-rw-r--r-- | db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb b/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb index 501ba7c5fe2..aa95fa49e48 100644 --- a/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb +++ b/db/post_migrate/20170921101004_normalize_ldap_extern_uids.rb @@ -220,7 +220,7 @@ class NormalizeLdapExternUids < ActiveRecord::Migration ## # Return the DN as an escaped and normalized string. - def to_s_normalized + def to_normalized_s self.class.new(*to_a).to_s end @@ -270,7 +270,7 @@ class NormalizeLdapExternUids < ActiveRecord::Migration ldap_identities = Identity.where("provider like 'ldap%'") ldap_identities.find_each do |identity| begin - identity.extern_uid = Gitlab::LDAP::DN.new(identity.extern_uid).to_s_normalized + identity.extern_uid = Gitlab::LDAP::DN.new(identity.extern_uid).to_normalized_s unless identity.save say "Unable to normalize \"#{identity.extern_uid}\". Skipping." end |