File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 [ ]
You can’t perform that action at this time.
0 commit comments