Which type for Text?
How long can a
Ash.Type.String
become with AshPostgres.DataLayer
? 255 characters? What type would I use for longer texts? I found this list but didn't find a text
entry:
2 Replies
I'm pretty sure using
:string
will define fields as type text, so not size limited like a varcharRight, as long as you're using the migration generator the column type will be
text
: https://github.com/ash-project/ash_postgres/blob/b76289f39f4ecf19853e68e529b742698f674ef1/lib/migration_generator/migration_generator.ex#L2214