Inserting an array using Sequel gem in PostgreSQL

前端 未结 3 880
星月不相逢
星月不相逢 2020-12-12 03:54

i created a table with the following schema in code

DB.create_table :Pokemon do
  primary_key :id
  String :first_name
  String :last_name
  String :email
           


        
3条回答
  •  -上瘾入骨i
    2020-12-12 03:59

    You need to use Sequel's pg_array extension, see http://sequel.rubyforge.org/rdoc-plugins/files/lib/sequel/extensions/pg_array_rb.html

提交回复
热议问题