Update documentation on config

This commit is contained in:
Martin Frost 2022-05-10 21:08:50 +02:00
parent 8106093229
commit b673c33fd2
2 changed files with 4 additions and 12 deletions

View File

@ -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

View File

@ -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: