Skip to content

Commit

Permalink
Update Ecto.Migration.references/2 documentaion (#622)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rhcarvalho committed Jul 13, 2024
1 parent b2c9c98 commit b1f7386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1f7386

Please sign in to comment.