Serialized json-hash-backed ActiveRecord attributes, super smooth

ActiveRecord attributes stored serialized in a json column, super smooth. For Rails 5.0, 5.1, 5.2, or 6.0. Ruby 2.4 .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.Why might you want or not want this?Developed for postgres, but most features should work with MySQL json columns too, although has not yet been tested with MySQL.
Serialized json-hash-backed ActiveRecord attributes, super smooth #ruby #rubydeveloper #rubyonrails #activerecord https://rubyonrails.ba/single/serialized-json-hash-backed-activerecord-attributes-super-smooth

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles