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: linked_account.rb
    path of file: ./repos/kitsu-server/app/models
    
    the code of the file until where you have to start completion: class LinkedAccount < ApplicationRecord
  belongs_to :us
    
  def type_is_subclass
    return false if type.blank?

    in_namespace = type.start_with?('LinkedAccount')
    is_descendant = type.safe_constantize <= LinkedAccount
    errors.add(:type, 'must be a LinkedAccount class') unless in_namespace && is_descendant
  end