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: 20140710224658_add_is_quote_to_topic_links.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 AddIsQuoteToTopicLinks < ActiveRecord::Migration[4.2]
  def up
    add_column :topic_links, :quote, :boolean, default: false, null: false

    # a primitive backfill, ev
    
  def up
    add_column :topic_links, :quote, :boolean, default: false, null: false

    # a primitive backfill, eventual rebake will catch missing
    execute "
    UPDATE topic_links
    SET quote = true
    WHERE id IN (
    SELECT l.id
      FROM topic_links l
      JOIN posts p ON p.id = l.post_id
      JOIN posts lp ON l.link_post_id = lp.id
      WHERE p.raw LIKE '%\[quote=%post:' ||
            lp.post_number::varchar || ',%topic:' ||
            lp.topic_id::varchar || '%\]%\[/quote]%'
    )"
  end