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
NOTE: Changing the activerecord gem version to 6.0.3.4 will make this test case pass, so this appears to be a regression.
System configuration
Rails version: 6.1.0
Ruby version: 2.6.6
The text was updated successfully, but these errors were encountered:
mintyfresh
changed the title
Default value for composed-of aggregate field ignored in ActiveRecord 6.1.0
Regression: Default value for composed-of aggregate field ignored in ActiveRecord 6.1.0
Dec 14, 2020
Use `{read,write}_attribute` public API in `composed_of` because
`_read_attribute` internal API should be passed argument as a string
since 7834363.
Fixesrails#40843.
Steps to reproduce
composed_of
attribute
This was encountered when upgrading an existing application from 6.0.3.4 to 6.1.0.
Executable Test Case
Expected behavior
Attribute should have default value wrapped in aggregate class:
Actual behavior
Attribute has no default value:
NOTE: Changing the
activerecord
gem version to6.0.3.4
will make this test case pass, so this appears to be a regression.System configuration
Rails version: 6.1.0
Ruby version: 2.6.6
The text was updated successfully, but these errors were encountered: