Does ecto automatically add an index for the references/2 type?

When you use add :author_id, references(:profiles), null: false, does ecto add an index for you or do you have to create it yourself?

1 Like

You have to create it on your own.

4 Likes