3 ms·
Try jsonb fields (postgres only maybe?) and the jsonb accessor gem: https://github.com/madeintandem/jsonb_accessor https://github.com/madeintandem/jsonb_accesso
by mitchellbryson 6y ago
Try jsonb fields (postgres only maybe?) and the jsonb accessor gem: https://github.com/madeintandem/jsonb_accessor https://github.com/madeintandem/jsonb_accessor
I use this for prototyping new apps a lot, where I'm not sure on the best design. Then I migrate to proper database columns when I'm sure of something. Feels like the best of both worlds to me.
- triangleman 6y agoYeah I think I learned this the hard way: even making DB columns can be a premature optimization.