I’ve a question regarding Rails and Active Record.
I’ve a class, for instance “Host” witch is populated with data from a
remote API. I call a specific address and create my object. My object
specific and unique ID.
I would like to add additional data to this object. This data would be
stored in my MySQL database. I want to only store this additional data
my database and do the link with my ID.
My idea for a Rails POV is to add an extra parameter in my “Host” class
with something like “host_extra” whitch is an ActiveRecord::Base class
my extra data and in my constructor in my Host class I do a
What do you think of my solution? A better solution exists to do