class ActiveRecord::ConnectionAdapters::TableDefinition

def index(column_name, **options)

index(:account_id, name: 'index_projects_on_account_id')

This is primarily used to track indexes that need to be created after the table
Adds index options to the indexes hash, keyed by column name
def index(column_name, **options)
  indexes << [column_name, options]
end