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: 20240302135942_add_locale_to_friendly_id_slugs.spree.rb
    path of file: ./repos/spree_starter/db/migrate
    
    the code of the file until where you have to start completion: # This migration comes from spree (originally 20220802070609)
class AddLocaleToFriendlyIdSlugs < ActiveRecord::Migration[6.1]
  def change
    add_column :fr
    
  def change
    add_column :friendly_id_slugs, :locale, :string, null: :false, after: :scope

    remove_index :friendly_id_slugs, [:slug, :sluggable_type]
    add_index :friendly_id_slugs, [:slug, :sluggable_type, :locale], length: { slug: 140, sluggable_type: 50, locale: 2 }
    remove_index :friendly_id_slugs, [:slug, :sluggable_type, :scope]
    add_index :friendly_id_slugs, [:slug, :sluggable_type, :scope, :locale], length: { slug: 70, sluggable_type: 50, scope: 70, locale: 2 }, unique: true, name: :index_friendly_id_slugs_unique
    add_index :friendly_id_slugs, :locale
  end