Pros/Cons of storing serialized hash vs. key/value database object in ActiveRecord?
If I have several objects that each have basically a Profile , what I'm using to store random attributes, what are the pros and cons of: Storing a serialized hash in a column for a record, vs. Storing a bunch of key/value objects that belong_to the main object. Code Say you have STI records like these: class Building < ActiveRecord::Base has_one :profile, :as => :profilable end class OfficeBuilding < Building; end class Home < Building; end class Restaurant < Building; end Each has_one :profile Option 1. Serialized Hash class SerializedProfile < ActiveRecord::Base serialize :settings end