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: 20210511201334_add_service_name_to_active_storage_blobs.active_storage.rb
    path of file: ./repos/sugar/db/migrate
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# This migration comes from active_storage (or
    
  def up
    return if column_exists?(:active_storage_blobs, :service_name)

    add_column :active_storage_blobs, :service_name, :string

    configured_service = ActiveStorage::Blob.service.name
    if configured_service
      ActiveStorage::Blob.unscoped.find_each do |s|
        s.update(service_name: configured_service)
      end
    end