Ecto.Migration.index/3

Parsed documentation:
View on GitHub
Returns an index struct that can be used on `create`, `drop`, etc.

Expects the table name as first argument and the index fields as
second. The field can be an atom, representing a column, or a
string representing an expression that is sent as is to the database.

Indexes are non-unique by default.

## Examples

    # Without a name, index defaults to products_category_id_sku_index
    create index(:products, [:category_id, :sku], unique: true)

    # Name can be given explicitly though
    drop index(:products, [:category_id, :sku], name: :my_special_name)
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.