Embed class in AR model with Postgresql JSON data type.