The basic principle is to store key:value data for an object in a
The extra attributes table looks like this:
key:value data related to some other model.
Then the object definition would look something like this.
#=> get all schemaless attributes for this object
There would also be a separate ‘cars’ table to store the essential data
regarding the Car model. The additional attributes are extra things that
might be different from instance to instance.
I’m sure variations of this are commonly used, I was just wandering if
there was an official “design pattern” name for it. Again, this is
referring to storing the data in a relational database.