namespace :hyrax do
  namespace :migrate do
    task move_all_works_to_admin_set: :environment do
      require 'hyrax/move_all_works_to_admin_set'
      MoveAllWorksToAdminSet.run(AdminSet.find(Hyrax::DefaultAdminSetActor::DEFAULT_ID))
    end
  end
end

namespace :hyrax do
  namespace :migrate do
    task move_all_works_to_admin_set: :environment do
      require 'hyrax/move_all_works_to_admin_set'
      MoveAllWorksToAdminSet.run(AdminSet.find(AdminSet::DEFAULT_ID))
    end
  end
end

Use the default admin set constant
Use the default admin set constant

All other references were changed in
https://github.com/projecthydra-labs/hyrax/commit/ecea37a203e10c75a644a199cdba9801746d1e55
