I can't find any element with where condition User.where('settings @> ?', '{"notify_new_appointment":true}').first
Because with typed_store field saves in format:
"---\nnotify_new_appointment: true\n" #PG jsonb field
Expected format(without typed_store):
{"notify_new_appointment": true} # works as expected with jsonb where queries
My simple typed_store configuraiton:
typed_store :settings do |s|
s.boolean :notify_new_appointment
end
I can't find any element with where condition
User.where('settings @> ?', '{"notify_new_appointment":true}').first
Because withtyped_store
field saves in format:"---\nnotify_new_appointment: true\n"
#PG jsonb field Expected format(without typed_store):{"notify_new_appointment": true}
# works as expected with jsonbwhere
queriesMy simple typed_store configuraiton:
Rails 7 activerecord-typedstore (1.5.1)