Skip to content

Commit

Permalink
Add note to not use unlisted __schema__ function values (#4572)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanemachine authored Jan 24, 2025
1 parent 372934d commit ba4115f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ecto/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ defmodule Ecto.Schema do
Furthermore, both `__struct__` and `__changeset__` functions are
defined so structs and changeset functionalities are available.
The `__schema__` function may accept other values, but those values
are not part of the public API. Any values that are not in the list
above may change at any time without notice.
## Working with typespecs
Generating typespecs for schemas is out of the scope of `Ecto.Schema`.
Expand Down

0 comments on commit ba4115f

Please sign in to comment.