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: 20230706080234_add_trigger_on_organizations.rb
    path of file: ./repos/gitlabhq/db/post_migrate
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class AddTriggerOnOrganizations < Gitlab::Database::
    
  def up
    default_org_id = Organizations::Organization::DEFAULT_ORGANIZATION_ID

    create_trigger_function(FUNCTION_NAME) do
      <<~SQL
        IF OLD.id = #{default_org_id} THEN
          RAISE EXCEPTION 'Deletion of the default Organization is not allowed.';
        END IF;
        RETURN OLD;
      SQL
    end

    create_trigger(TABLE_NAME, TRIGGER_NAME, FUNCTION_NAME, fires: 'BEFORE DELETE')
  end