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.
create_table "products" do |t|
t.jsonb "data"
end
class Product < ActiveRecord::Base
jsonb_accessor :data, title: :string
end
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.