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: 20200819203647_cities_search_includes_state_name.rb
    path of file: ./repos/catarse/db/migrate
    
    the code of the file until where you have to start completion: class CitiesSearchIncludesStateName < ActiveRecord::Migration
  def up
    execute <<-SQL

 
    
  def up
    execute <<-SQL

    CREATE OR REPLACE VIEW "1"."cities" AS 
      SELECT c.id,
        c.state_id,
        c.name,
        s.name AS state_name,
        s.acronym,
        -- make search available by city and state name
        ((unaccent(c.name) || ' ') || s.acronym || (unaccent(s.name) || ' ') ) AS search_index
      FROM cities c
      JOIN states s ON s.id = c.state_id;

    SQL
  end