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: deactivatable.rb
    path of file: ./repos/malheatmap/app/models/user
    
    the code of the file until where you have to start completion: class User
  module Deactivatable
    extend ActiveSupport::Concern

    DEACTIVATION_BUFFER = 3.days

    included { scope :active, -> { where(deactivated_at: nil) } }

  
    
    def active? = !deactivated?

    def schedule_deactivation
      User::Deactivatable::DeactivationJob.set(wait_until: DEACTIVATION_BUFFER.from_now.noon).perform_later(
        id,
        updated_at
      )
    end

    def deactivate!
      touch(:deactivated_at)
    end

    class DeactivationJob < ApplicationJob
      discard_on ActiveRecord::RecordNotFound

      def perform(user_id, updated_at)
        ::User.find_by!(id: user_id, updated_at:).deactivate!
      end
    end