attr_json
ActiveRecord attributes stored serialized in a json column, super smooth. Typed and cast like Active Record. Supporting nested models, dirty tracking, some querying (with postgres jsonb contains), and working smoothy with form builders. Use your database as a typed object store via ActiveRecord, in the same models right next to ordinary ActiveRecord column-backed attributes and associations. Your json-serialized attr_json attributes use as much of the existing ActiveRecord architecture as we can.
Types
Docs
Guides
Zeitwerk
Namespace
Optimized
2.5.0
Jonathan Rochkind
bundle add attr_json
Getting Started
Learn more about the Attr_json gem.
Playground
Test, play and inspect the gem for yourself