Skip to content

Commit d0eb7fc

Browse files
Update Postgres adapter docs (#654)
1 parent cc17a0d commit d0eb7fc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/ecto/adapters/postgres.ex

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ defmodule Ecto.Adapters.Postgres do
120120
alongside Ecto, you must define a type module with your extensions.
121121
Create a new file anywhere in your application with the following:
122122
123-
Postgrex.Types.define(MyApp.PostgresTypes,
124-
[MyExtension.Foo, MyExtensionBar] ++ Ecto.Adapters.Postgres.extensions())
123+
Postgrex.Types.define(MyApp.PostgresTypes, [MyExtension.Foo, MyExtensionBar])
125124
126125
Once your type module is defined, you can configure the repository to use it:
127126
@@ -143,6 +142,13 @@ defmodule Ecto.Adapters.Postgres do
143142

144143
@doc """
145144
All Ecto extensions for Postgrex.
145+
146+
Currently Ecto does not define any of its own extensions for Postgrex.
147+
If this changes in a future release, you will need to call this function
148+
when defining your own custom extensions:
149+
150+
Postgrex.Types.define(MyApp.PostgresTypes,
151+
[MyExtension.Foo, MyExtensionBar] ++ Ecto.Adapters.Postgres.extensions())
146152
"""
147153
def extensions do
148154
[]

0 commit comments

Comments
 (0)