From b1f7386c6465d78e1e09691ed11fa4ad5e854fcd Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sat, 13 Jul 2024 22:34:03 +0200 Subject: [PATCH] Update Ecto.Migration.references/2 documentaion (#622) The `:name` option is unrelated to the referred column. On occasion, what would need to change is `:column` and `:type` according to the column name and column type of the referenced column. --- lib/ecto/migration.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ecto/migration.ex b/lib/ecto/migration.ex index 5a7462c0..13f6c51b 100644 --- a/lib/ecto/migration.ex +++ b/lib/ecto/migration.ex @@ -1381,7 +1381,7 @@ defmodule Ecto.Migration do By default it assumes you are linking to the referenced table via its primary key with name `:id`. If you are using a non-default key setup (e.g. using `uuid` type keys) you must ensure you set the - options, such as `:name` and `:type`, to match your target key. + options, such as `:column` and `:type`, to match your target key. ## Examples