Hacker News new | ask | show | jobs
by mitchellbryson 2065 days ago
Try jsonb fields (postgres only maybe?) and the jsonb accessor gem: 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.

1 comments

Yeah I think I learned this the hard way: even making DB columns can be a premature optimization.