# Phoenix : ArgumentError - invalid type

> How to fix an argument error when using an improper schema description. This error might be confusing but it's really simple to fix.

- URL: https://graffino.com/til/argumenterror-invalid-or-unknown-type-text-for-field
- Author: Nick Ciolpan
- Channel: elixir
- Published: 2020-09-04
- Updated: 2026-04-10

Phoenix schema: ArgumentError - invalid or unknown type :text for field

:text can be used in migrations, but not when describing the schema in the model. Use :string instead.
