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
v1.3.3 seems to have broken attribute assignment for values that are not defined in jsonb.
If you happen to have a key that has the same name as an attribute (non-jsonb) in ActiveRecord, it ends up overwriting it.
Expected behaviour would be to store the data, but not overwrite non-jsonb attributes.
product=Product.newproduct.created_at# nilproduct.data={title: "hello world",created_at: 1.year.ago}product.title# "hello world"product.created_at# "2021-08-19T15:40:42+08:00" (this should be nil)
The text was updated successfully, but these errors were encountered:
yurikoval
changed the title
Assigning non-existing jsonb values overwrites AR values in v1.3.3
Assigning undefined jsonb values overwrites non-jsonb values in v1.3.3
Jul 21, 2022
v1.3.3 seems to have broken attribute assignment for values that are not defined in jsonb.
If you happen to have a key that has the same name as an attribute (non-jsonb) in ActiveRecord, it ends up overwriting it.
Expected behaviour would be to store the data, but not overwrite non-jsonb attributes.
The text was updated successfully, but these errors were encountered: