From cebce7da428c7ecb7d8a76c5756970b7c664c539 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Tue, 22 Jun 2021 23:50:52 +0000 Subject: [PATCH] [day-02] configure repo to use uuid type as id --- config/config.exs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.exs b/config/config.exs index 6c4411a..5a3723c 100644 --- a/config/config.exs +++ b/config/config.exs @@ -10,6 +10,10 @@ use Mix.Config config :wabanex, ecto_repos: [Wabanex.Repo] +config :wabanex, Wabanex.Repo, + migration_primary_key: [type: :binary_id], + migration_foreign_key: [type: :binary_id] + # Configures the endpoint config :wabanex, WabanexWeb.Endpoint, url: [host: "localhost"],