Add hack for apartment serialization with active record