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: 20160527090120_rename_title_key.rb
    path of file: ./repos/kitsu-server/db/migrate
    
    the code of the file until where you have to start completion: class RenameTitleKey < ActiveRecord::Migration[4.2]
  class Anime < ActiveRecord::Base; end
  class Drama < ActiveRecord::Base; end
  class Manga < ActiveRecord::B
    
  def change
    # Copy values from :ja_en to new key :en_jp
    execute <<-SQL
      UPDATE anime
      SET titles = titles || hstore('en_jp', titles -> 'ja_en')
    SQL

    execute <<-SQL
      UPDATE dramas
      SET titles = titles || hstore('en_jp', titles -> 'ja_en')
    SQL

    execute <<-SQL
      UPDATE manga
      SET titles = titles || hstore('en_jp', titles -> 'ja_en')
    SQL

    execute <<-SQL
      UPDATE episodes
      SET titles = titles || hstore('en_jp', titles -> 'ja_en')
    SQL

    # Update canonical_title values
    Anime.where(canonical_title: 'ja_en').update_all(canonical_title: 'en_jp')
    Drama.where(canonical_title: 'ja_en').update_all(canonical_title: 'en_jp')
    Manga.where(canonical_title: 'ja_en').update_all(canonical_title: 'en_jp')
    Episode.where(canonical_title: 'ja_en').update_all(canonical_title: 'en_jp')

    # Delete the old :ja_en key
    execute <<-SQL
      UPDATE anime
      SET titles = delete(titles, 'ja_en')
    SQL

    execute <<-SQL
      UPDATE dramas
      SET titles = delete(titles, 'ja_en')
    SQL

    execute <<-SQL
      UPDATE manga
      SET titles = delete(titles, 'ja_en')
    SQL

    execute <<-SQL
      UPDATE episodes
      SET titles = delete(titles, 'ja_en')
    SQL

    # Update canonical_title default
    change_column_default :anime, :canonical_title, 'en_jp'
    change_column_default :dramas, :canonical_title, 'en_jp'
    change_column_default :manga, :canonical_title, 'en_jp'
    change_column_default :episodes, :canonical_title, 'en_jp'
  end