JSON dynamic attributes with Rails
18-Apr-2019 2105
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.
JSON dynamic attributes with Rails #ruby #rubydeveloper #rubyonrails #dynamic #attributes #Rails https://www.rubyonrails.ba/link/json-dynamic-attributes-with-rails