diff --git a/config/config.exs b/config/config.exs index 3917628..b377652 100644 --- a/config/config.exs +++ b/config/config.exs @@ -75,6 +75,8 @@ config :parrhesia, Parrhesia.Web.MetricsEndpoint, ip: {127, 0, 0, 1}, port: 9568 +config :parrhesia, Parrhesia.Repo, types: Parrhesia.PostgresTypes + config :parrhesia, ecto_repos: [Parrhesia.Repo] import_config "#{config_env()}.exs" diff --git a/lib/parrhesia/postgres_types.ex b/lib/parrhesia/postgres_types.ex new file mode 100644 index 0000000..1fdaecd --- /dev/null +++ b/lib/parrhesia/postgres_types.ex @@ -0,0 +1 @@ +Postgrex.Types.define(Parrhesia.PostgresTypes, [], json: JSON)