1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add missing link in latest til

This commit is contained in:
jbranchaud
2017-02-01 14:58:03 -06:00
parent 9b48c11e26
commit c58d374c4f

View File

@@ -1,7 +1,9 @@
# Unique Indexes With Ecto
You can create a unique index in a migration for one or more columns using
the [`unique_index/3`] function.
the
[`unique_index/3`](https://hexdocs.pm/ecto/Ecto.Migration.html#unique_index/3)
function.
For example, if you are creating a join table for `followers` and want to
ensure that duplicate _follower_ entries are prevented, you may want to