Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Aug 19, 2024
1 parent aaec135 commit dacfe88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/flop/schema.ex
Original file line number Diff line number Diff line change
Expand Up @@ -613,16 +613,15 @@ defprotocol Flop.Schema do
- `:string`
- `:integer`
- `Ecto.UUID`
- `{:parameterized, {Ecto.Enum, Ecto.Enum.init(values: [:one, :two])}}`
- The result of `Ecto.ParameterizedType.init/2`.
Or reference a schema field:
`{:from_schema, MyApp.Pet, :mood}`
Or build an adhoc Ecto.Enum:
- `{:ecto_enum, [:one, :two]}` (This has the same effect as the `:parameterized`
example above.)
- `{:ecto_enum, [:one, :two]}`
- `{:ecto_enum, [one: 1, two: 2]}`
Note that if you make an `Ecto.Enum` type this way, the filter value will be
Expand Down

0 comments on commit dacfe88

Please sign in to comment.