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: 20131021190108_add_progress_to_project_totals.rb
    path of file: ./repos/catarse/db/migrate
    
    the code of the file until where you have to start completion: class AddProgressToProjectTotals < ActiveRecord::Migration
  def up
    execute <<-SQL
     DROP VIEW project_totals;
     CREATE OR REPLACE VIEW project_totals AS
       SELECT
         b
    
  def up
    execute <<-SQL
     DROP VIEW project_totals;
     CREATE OR REPLACE VIEW project_totals AS
       SELECT
         backers.project_id,
         sum(backers.value) AS pledged,
         (sum(backers.value)/projects.goal)*100 as progress,
         sum(backers.payment_service_fee) AS total_payment_service_fee,
        count(*) AS total_backers
      FROM backers
      JOIN projects ON backers.project_id = projects.id
      WHERE (backers.state in ('confirmed', 'refunded', 'requested_refund'))
      GROUP BY backers.project_id, projects.goal;
      SQL
    end