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: 20150717151336_drop_contributor_numbers.rb
    path of file: ./repos/catarse/db/migrate
    
    the code of the file until where you have to start completion: class DropContributorNumbers < ActiveRecord::Migration
  def up
    execute <<-SQL
    DR
    
  def down
    execute <<-SQL
    CREATE MATERIALIZED VIEW public.contributor_numbers AS
     WITH confirmed AS (
         SELECT c.user_id,
            min(c.id) AS id
           FROM "1".contribution_details c
          WHERE c.state = ANY (confirmed_states())
          GROUP BY c.user_id
          ORDER BY min(c.id)
        )
     SELECT confirmed.user_id,
      row_number() OVER (ORDER BY confirmed.id) AS number
     FROM confirmed;
   SQL
  end