diff --git a/phoenix-framework/02-CRUD/guide/5_ecto_associations.md b/phoenix-framework/02-CRUD/guide/5_ecto_associations.md index eabe811..e506f79 100644 --- a/phoenix-framework/02-CRUD/guide/5_ecto_associations.md +++ b/phoenix-framework/02-CRUD/guide/5_ecto_associations.md @@ -168,7 +168,7 @@ defmodule UserDemo.Repo.Migrations.CreateUsersTasks do add :task_id, references(:tasks) end - create unique_index(:user_tasks, [:user_id, :task_id]) + create unique_index(:users_tasks, [:user_id, :task_id]) end end ```