Skip to content

Commit b1f7386

Browse files
authored
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.
1 parent b2c9c98 commit b1f7386

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ecto/migration.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ defmodule Ecto.Migration do
13811381
By default it assumes you are linking to the referenced table
13821382
via its primary key with name `:id`. If you are using a non-default
13831383
key setup (e.g. using `uuid` type keys) you must ensure you set the
1384-
options, such as `:name` and `:type`, to match your target key.
1384+
options, such as `:column` and `:type`, to match your target key.
13851385
13861386
## Examples
13871387

0 commit comments

Comments
 (0)