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: conversation_part_block.rb
    path of file: ./repos/chaskiq/app/models
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class ConversationPartBlock < ApplicationRecord
  include Redis::Objects

  has_one :conversation_part, as: :messageable, dependent
    
  def create_fase(app)
    return if blocks["app_package"].blank?

    # this right now only works for trusted plugins
    # this needs to be API hook compatible
    # add a proper setting on appPackage like, hook_url ?
    package_class_name = blocks["app_package"]
    klass = begin
      "MessageApis::#{package_class_name}::Api".constantize
    rescue StandardError
      nil
    end