From 944a0fc832bd9e8b2a8b1ee8f0fb810692bd4b9d Mon Sep 17 00:00:00 2001 From: Cristina Marques Date: Wed, 4 May 2022 17:50:39 +0200 Subject: [PATCH] fix table name in 5_ecto_associations From ":user_tasks" to ":users_tasks". Without this I got an error: (...) create index user_tasks_user_id_task_id_index ** (MyXQL.Error) (1146) (ER_NO_SUCH_TABLE) Table 'user_demo_dev.user_tasks' doesn't exist --- phoenix-framework/02-CRUD/guide/5_ecto_associations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ```