You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: deactivate_mr_deployments_worker.rb
    path of file: ./repos/gitlabhq/app/workers/pages
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Pages
  class Deact
    
    def deactivate_deployments_with_build_ids(build_ids)
      PagesDeployment
        .versioned
        .ci_build_id_in(build_ids)
        .each_batch do |batch|
          batch.deactivate
        end
    end