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: group_memberships_update_job.rb
    path of file: ./repos/onebody/app/jobs
    
    the code of the file until where you have to start completion: class GroupMembershipsUpdateJob < ApplicationJob
  queue_as :group_memberships_update

  def perform(site)
    
    
  def perform(site)
    ActiveRecord::Base.connection_pool.with_connection do
      Site.with_current(site) do
        Group.update_memberships
      end
    end
  end