I'm trying to store a JSON array into a column. 

I have declared the column like this

column :payment_terms, "json[]"

I'm able to see that the column creation has worked fine. But how do I 
insert a JSON array into it?

I've tried

table.insert(
field_name: Sequel.pg_array([
                  '{"key1":"val1"}',
                 '{"key2":""val2}'      
               ])
              )

This doesn't seem to work. 

Could you please help me out?

Thank You

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/9e5fb80d-8781-4c86-9688-2e82d53b388d%40googlegroups.com.

Reply via email to