rake task "gitlab:import:all_users_to_all_projects" not working in 4.1
Created by: Crapworks
Hi!
I'm using your stable release 4.1 and I've tried to add all users to all projects with the corresponding rake task gitlab:import:all_users_to_all_projects
.
But I get the following errors:
$ sudo -u gitlab -H bundle exec rake gitlab:import:all_users_to_all_projects RAILS_ENV=production
Importing 2 users into testprojekt1
rake aborted!
undefined method `bulk_import' for #<Class:0x00000004788df0>
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/dynamic_matchers.rb:55:in `method_missing'
/home/gitlab/gitlab/lib/tasks/gitlab/bulk_add_permission.rake:10:in `block (4 levels) in <top (required)>'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/relation/batches.rb:21:in `block (2 levels) in find_each'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/relation/batches.rb:21:in `each'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/relation/batches.rb:21:in `block in find_each'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/relation/batches.rb:72:in `find_in_batches'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/relation/batches.rb:20:in `find_each'
/home/gitlab/gitlab/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/querying.rb:8:in `find_each'
/home/gitlab/gitlab/lib/tasks/gitlab/bulk_add_permission.rake:8:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:import:all_users_to_all_projects
(See full trace by running task with --trace)
Is there something I'm doing wrong? Or is this task broken in the current release?
My system:
System information
System: Debian 7.0
Current User: gitlab
Using RVM: no
Ruby Version: 1.9.3p327
Gem Version: 1.8.23
Bundler Version:1.2.3
Rake Version: 10.0.3