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: replace_signed_id_job.rb
    path of file: ./repos/Spina/app/jobs/spina
    
    the code of the file until where you have to start completion: module Spina
  class ReplaceSignedIdJob < Appl
    
    def perform(old_signed_id, new_signed_id)
      return if old_signed_id.blank? || new_signed_id.blank?

      pages = get_pages(old_signed_id)
      accounts = Spina::Account.all

      [pages, accounts].each do |records|
        records.update_all("json_attributes = REGEXP_REPLACE(json_attributes::text, '#{old_signed_id}', '#{new_signed_id}', 'g')::jsonb")
      end
    end