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
and test_field is set as not null in the database then the value of a duplicate should be the default value, not null. However, at present, the field is set to nil and the resulting instance cannot be saved.
If a field is set as follows:
and
test_field
is set as not null in the database then the value of a duplicate should be the default value, not null. However, at present, the field is set tonil
and the resulting instance cannot be saved.To reproduce
Create a migration:
and the corresponding model:
Then:
Expected behaviour:
dup
is saved successfully withtest_string
set to"Test default"
.Actual behaviour: Not-null violation exception raised.
The text was updated successfully, but these errors were encountered: