You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
likely to encounter this when your model field name does not match the table column
You mean the field namespace doesn't match the model key?
Edit: Maybe we should have a validation check to see if all fields' namespaces are the same as the model keyword? Which would raise a readable exception at registration.
I mean when the model key e.g. "email" doesn't have a corresponding column "email" in the table.
In this case I added a field to my model but forgot to add it to the table in my migration.
Edit: and then the second time I encountered it was when I named a model key ":user/verified?" but the column name was only "verified" (missing the question mark).
To help track what postgres errors would be good to add default exception handlers for I've created this ticket.
All postgres errors are here: https://www.postgresql.org/docs/current/errcodes-appendix.html
42703 | undefined_column
- likely to encounter this when your model field name does not match the table column... more soon ...
The text was updated successfully, but these errors were encountered: