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: 20160721221850_adjust_user_followers_endpoint.rb
    path of file: ./repos/catarse/db/migrate
    
    the code of the file until where you have to start completion: class AdjustUserFollowersEndpoint < ActiveRecord::Migration
  def up
    execute %Q{
        create or replace view "1".user_followers as
            select
                uf.user_id,
                uf.follow_id,
                json_build_object(
                    'name', f.name,
                    'avatar', public.thumbnail_image(f.*),
                    'total_contributed_projects', ut.total_contributed_projects,
                    'total_published_projects', ut.total_published_projects,
                    'city', f.address_city,
                    'state', f.address_state,
                    'following', user_following_this_user(uf.follow_id, uf.user_id)
                ) as source,
                public.zone_timestamp(uf.created_at) as created_at
            from public.user_follows uf
        
    
  def up
    execute %Q{
        create or replace view "1".user_followers as
            select
                uf.user_id,
                uf.follow_id,
                json_build_object(
                    'name', f.name,
                    'avatar', public.thumbnail_image(f.*),
                    'total_contributed_projects', ut.total_contributed_projects,
                    'total_published_projects', ut.total_published_projects,
                    'city', f.address_city,
                    'state', f.address_state,
                    'following', user_following_this_user(uf.follow_id, uf.user_id)
                ) as source,
                public.zone_timestamp(uf.created_at) as created_at
            from public.user_follows uf
            left join "1".user_totals ut on ut.user_id = uf.user_id
            join public.users as f on f.id = uf.user_id
            where public.is_owner_or_admin(uf.follow_id) and f.deactivated_at is null and uf.follow_id is not null;
    }
  end