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: