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

class Trigg
    
  def up
    val =
      DB.query_single(
        "SELECT value FROM site_settings WHERE name = 'content_security_policy'",
      ).first

    return if val == nil || val == "t"

    DB.exec(<<~SQL)
      UPDATE posts
      SET baked_version = NULL
      WHERE cooked LIKE '%<a href=%'
    SQL
  end