I want to do the following.
I want my model to have a column that store's a hash i.e. name/value pairs. When I load a record in my model, I don't want it to parse to de-seralize the value from the database UNLESS I access it i.e. lazy initialization.
This is b/c only a few percentage of my rows in the db will have values for the hash, and they will rarely be accessed.
Is this possible?
example usage:
user.properties["age"] = 12
user.properties["height"] = xxx
user.save
I'm not sure how it would be saved into the db, maybe in json format?