Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I use both https://github.com/madeintandem/jsonb_accessor and https://github.com/DmitryTsepelev/store_model for storing different types of JSONB data in my Rails app. jsonb_accessor is great for lightweight, non-queryable('ish) fields, and StoreModel is great for mapping JSON documents to model-type records.
I use both https://github.com/madeintandem/jsonb_accessor and https://github.com/DmitryTsepelev/store_model for storing different types of JSONB data in my Rails app. jsonb_accessor is great for lightweight, non-queryable('ish) fields, and StoreModel is great for mapping JSON documents to model-type records.
I myself maintain one solution meant for rails attributes stored in a json column, at https://github.com/jrochkind/attr_json
There are some other gems that can do similar things (each with somewhat different design and possibilities) including https://github.com/madeintandem/jsonb_accessor , https://github.com/DmitryTsepelev/store_model , and https://github.com/palkan/store_attribute
Related posts
- Is there a way you can create a base model and your client may add attributes as needed?
- How to Create A Flexible, Performant Audit Trail In Ruby on Rails With A GraphQL API
- N1Loader is alive as ever Enhance your GraphQL API by getting rid of N+1 issues
- historical data and "point in time" data modeling techniques, advice.
- How to use store_accessor for nested JSON in rails