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: 20130812191450_show_refunded_on_backers_report.rb
    path of file: ./repos/catarse/db/migrate
    
    the code of the file until where you have to start completion: class ShowRefundedOnBackersReport < ActiveRecord::Migration
  def up
    drop_view :backer_reports
    create_view :backer_reports, <<-SQL
      SELECT
        b.project_id,
        u.name,
        b.value,
        r.minimum_value,
        r.description,
        b.payment_method,
        b.payment_choice,
        b.payment_service_fee,
        b.key,
        b.created_at::date,
        b.confirmed_at::date,
        u.email,
        b.payer_email,
        b.payer_name,
        coalesce(b.payer_document, u.cpf) as cpf,
        u.address_street,
        u.address_complement,
    
  def up
    drop_view :backer_reports
    create_view :backer_reports, <<-SQL
      SELECT
        b.project_id,
        u.name,
        b.value,
        r.minimum_value,
        r.description,
        b.payment_method,
        b.payment_choice,
        b.payment_service_fee,
        b.key,
        b.created_at::date,
        b.confirmed_at::date,
        u.email,
        b.payer_email,
        b.payer_name,
        coalesce(b.payer_document, u.cpf) as cpf,
        u.address_street,
        u.address_complement,
        u.address_number,
        u.address_neighbourhood,
        u.address_city,
        u.address_state,
        u.address_zip_code,
        b.state
      FROM
        backers b
        JOIN users u ON u.id = b.user_id
        LEFT JOIN rewards r ON r.id = b.reward_id
      WHERE
        b.state IN ('confirmed', 'refunded', 'requested_refund');
    SQL
  end