From b673c33fd213303d8bbfb62c2741439b31e31457 Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Tue, 10 May 2022 21:08:50 +0200 Subject: [PATCH] Update documentation on config --- README.md | 10 +++------- lib/isn.ex | 6 +----- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ea001bf..e40544e 100644 --- a/README.md +++ b/README.md @@ -49,16 +49,12 @@ end mix do isn.gen.migration, ecto.migrate -**In lib/ directory create a file with the following content:** +**Add a lib/postgrex_types.ex file with the following content:** ```elixir -Postgrex.Types.define( - MyApp.PostgrexTypes, - [ISN] ++ Ecto.Adapters.Postgres.extensions(), - json: Poison -) +Postgrex.Types.define(MyApp.PostgrexTypes, [ISN], []) ``` -**Add the following lines in conig.exs:** +**Add the following lines in config.exs:** ```elixir config :my_app, MyApp.Repo, types: MyApp.PostgrexTypes diff --git a/lib/isn.ex b/lib/isn.ex index 5a6390f..c9e62bb 100644 --- a/lib/isn.ex +++ b/lib/isn.ex @@ -8,11 +8,7 @@ defmodule ISN do In lib/ directory create a file with the following content: - Postgrex.Types.define( - MyApp.PostgrexTypes, - [ISN] ++ Ecto.Adapters.Postgres.extensions(), - json: Poison - ) + Postgrex.Types.define(MyApp.PostgrexTypes, [ISN], []) Add the following lines in conig.exs: