On Thursday, September 8, 2016 at 12:34:08 PM UTC-7, Chris Nicola wrote: > > I'm just getting started with Sequel and I'm curious what people do when > handling JSON or JSONB Postgres fields and using Sequel::Model. Is there a > plugin that handles this transparently or is it more complicated than that. > > I'm currently using ActiveRecord with store_accessor for this. >
You probably want to use the pg_json extension: # Before creating your model classes DB.extension :pg_json This should handle things for you. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
