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
{{ message }}
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
When invoking ObjectRepository.new.create, a new Object is indeed persisted with the default values as defined in the migration.
When invoking `ObjectRepository.new.create( Object.new( attribute1: '', attribute2:'foobar', attribute3:nil )
an Object with all these attributes set is persisted, but neither empty string nor nil is set to the default value.
Possibly unimportant context:
The attribute values are received from a form object that is handled inside an interactor.
The model is part of an has_one association: ThisObject.has_one OtherObject.