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: create_trigger.rb
    path of file: ./repos/pg_trunk/lib/pg_trunk/operations/triggers
    
    the code of the file until where you have to start completion: # frozen_string_literal: false

# @!parse
#   class ActiveRecord::Migration
#     # Create a trigger for a table
#     #
#     # @param [#to_s] table (n
    
    def events_sql
      events.map do |event|
        if event == :update && columns.present?
          "UPDATE OF #{columns.join(', ')}"
        else
          event.to_s.upcase
        end
      end.join(" OR ")
    end