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: 20190903012523_create_relationships.rb
    path of file: ./repos/vglist/db/migrate
    
    the code of the file until where you have to start completion: # typed: true
class CreateRelationships < ActiveRecord::Migration[6.0]
  def change
    create_table :relationships do |t|
      t.references :follower,
        null: false,
        index: true,
        foreign_key: { to_table: :users }

      t.references :followed,
        null: false,
        inde
    
  def change
    create_table :relationships do |t|
      t.references :follower,
        null: false,
        index: true,
        foreign_key: { to_table: :users }

      t.references :followed,
        null: false,
        index: true,
        foreign_key: { to_table: :users }

      t.timestamps
    end

    add_index :relationships, [:follower_id, :followed_id], unique: true
  end