Automatic marshalling with DB access

Check out ActiveRecord::Base.serialize


http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M001020

class Foo < ActiveRecord::Base
serialize :bar
end

HTH,
Michael Guterl