mirror of
https://github.com/jbranchaud/til
synced 2026-01-06 16:48:01 +00:00
Add missing link in latest til
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
# Unique Indexes With Ecto
|
# Unique Indexes With Ecto
|
||||||
|
|
||||||
You can create a unique index in a migration for one or more columns using
|
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
|
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
|
ensure that duplicate _follower_ entries are prevented, you may want to
|
||||||
|
|||||||
Reference in New Issue
Block a user