How to serialize hstore for Rails model


#1

I have been using Virtus, and in the documentation of this project it says this gem dry-types can be a replacement of the Virtus gem, I’m using it to serialize/parse my hstore column in this way: https://nandovieira.com/using-postgresql-and-hstore-with-rails (Using the Virtus gem)

Today I have tried to replace the Virtus implementation with the dry-types gem without success, could you please write an example of how to accomplish this with dry-types?


#2

@victorhazbun Can you share with us what you tried (code examples are great), and how it specifically fell short of what you wanted to achieve?