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: 20161215170459_add_id_to_bank_account_endpoint.rb
    path of file: ./repos/catarse/db/migrate
    
    the code of the file until where you have to start completion: class AddIdToBankAccountEndpoint < ActiveRecord::Migration
  def change
    execute <<-SQL
    CREATE O
    
  def change
    execute <<-SQL
    CREATE OR REPLACE VIEW "1".bank_accounts AS
    SELECT ba.user_id,
    b.name AS bank_name,
    b.code AS bank_code,
    ba.account,
    ba.account_digit,
    ba.agency,
    ba.agency_digit,
    ba.owner_name,
    ba.owner_document,
    ba.created_at,
    ba.updated_at,
    ba.id as bank_account_id,
    ba.bank_id as bank_id
   FROM bank_accounts ba
     JOIN banks b ON b.id = ba.bank_id
  WHERE is_owner_or_admin(ba.user_id);
    SQL
  end