Replies: 1 comment
-
Sorry for the late answer! Why not use a For example: class MySchema < Marten::Schema
field :tos, :bool, required: true
end Validation won't pass unless the value is true. It is worth noting that If you need to enforce only |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes a checkbox must be checked (ToS, privacy policy, etc.) in order to successfully submit a form. The
:bool
schema field could utilize a parameter for this to enforce onlytrue
or onlyfalse
values.Beta Was this translation helpful? Give feedback.
All reactions