Add ActiveRecord attribute serialization