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

class SidebarSectionLink < ActiveRecord::Base
  belongs_to :user
  belong
    
  def ensure_supported_linkable_type
    if (!SUPPORTED_LINKABLE_TYPES.include?(self.linkable_type)) ||
         (self.linkable_type == "Tag" && !SiteSetting.tagging_enabled)
      self.errors.add(
        :linkable_type,
        I18n.t("activerecord.errors.models.sidebar_section_link.attributes.linkable_type.invalid"),
      )
    end