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
Describe the bug
Some of my PG tables have generated fields. Trying to insert records for those models will fail, even if you omit the field because the query will still try to insert nil rather than nothing at all.
To Reproduce
Steps to reproduce the behavior:
Generate a model for a table in PG that has a generated field
Try to insert a model record for that table
The insert will fail, ie pq: cannot insert into column "the_generated_field_name"
Expected behavior
Insert/update queries should automatically exclude any generated fields.
The text was updated successfully, but these errors were encountered:
Describe the bug
Some of my PG tables have generated fields. Trying to insert records for those models will fail, even if you omit the field because the query will still try to insert
nil
rather than nothing at all.To Reproduce
Steps to reproduce the behavior:
pq: cannot insert into column "the_generated_field_name"
Expected behavior
Insert/update queries should automatically exclude any generated fields.
The text was updated successfully, but these errors were encountered: