Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
66d507a2
Commit
66d507a2
authored
Mar 26, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix_ldap_migrator' into 'master'
Fix LDAP migrator to new_syntax See merge request !362
parents
eac762c8
71ffe547
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/tasks/migrate/ldap.rake
lib/tasks/migrate/ldap.rake
+3
-3
No files found.
lib/tasks/migrate/ldap.rake
View file @
66d507a2
...
...
@@ -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_
user
s
.
count
}
unmigrated LDAP users"
unmigrated_ldap_
identities
=
Identity
.
where
(
provider:
'ldap'
)
puts
"found
#{
unmigrated_ldap_
identitie
s
.
count
}
unmigrated LDAP users"
puts
"setting provider to
#{
provider
}
"
unmigrated_ldap_
user
s
.
update_all
provider:
provider
unmigrated_ldap_
identitie
s
.
update_all
provider:
provider
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment