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

require "migration/base_dropper"

module Migration
  class TableDropper
    def self.read_only_table(table_name)
      BaseDropper.create_readonly_function(tab
    
    def self.read_only_table(table_name)
      BaseDropper.create_readonly_function(table_name)

      DB.exec <<~SQL
        CREATE TRIGGER #{BaseDropper.readonly_trigger_name(table_name)}
        BEFORE INSERT OR UPDATE OR DELETE OR TRUNCATE
        ON #{table_name}
        FOR EACH STATEMENT
        EXECUTE PROCEDURE #{BaseDropper.readonly_function_name(table_name)};
      SQL
    end