Serialized json-hash-backed ActiveRecord attributes, super smooth
04-Jun-2020 1379
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 #Serialized #json-hash-backed #ActiveRecord #attributes, #super #smooth #activerecord https://rubyonrails.ba/link/serialized-json-hash-backed-activerecord-attributes-super-smooth