JSON dynamic attributes with Rails

18-Apr-2019 2007
We had a tricky problem. We knew that the columns for one particular model would need to change over time. That was easily solved with a JSON field, but we also wanted to support validations on this field – validations that are assigned to the model at the time of creation. Heitor SilvaThis was a joint effort between me, Tom Rothe and Dmitry Parshenko. After we did some brainstorming and white board sessions, we decided to start with a Model called Vehicle. It held a schema and a description keeping its characteristics.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle