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
With default of 7x config.active_record.partial_inserts = false inserts are failing on a composite primary key with id as IDENTITY column. I can get a workaround by reverting config.active_record.partial_inserts to true.
Steps to reproduce
With default of 7x
config.active_record.partial_inserts = false
inserts are failing on a composite primary key with id as IDENTITY column. I can get a workaround by revertingconfig.active_record.partial_inserts
to true.I also experimented a possible solution on main...rafaelsouza:rails:rafaelsouza/fix-composed-primary-key-bug-with-identity-generated-id . I know it can be solved a couple of different ways, if this is reasonable let me know.
Expected behavior
Actual behavior
ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: null value in column "id" of relation "users" violates not-null constraint
System configuration
Rails version: 7.1.x
Ruby version: 3.3
The text was updated successfully, but these errors were encountered: