Ash.Type.String (ash v1.46.12) View Source
Stores a string in the database.
A built-in type that can be referenced via :string.
By default, values are trimmed and empty values are set to nil.
You can use the allow_empty? and trim? constraints to change these behaviors.
Constraints
:max_length- Enforces a maximum length on the value:min_length- Enforces a minimum length on the value:match- Enforces that the string matches a passed in regex:trim?- Trims the value. The default value istrue.:allow_empty?- If false, the value is set tonilif it's empty. The default value isfalse.