Method: Sequel::Postgres::ArrayOp#unshift

Defined in:
lib/sequel/extensions/pg_array_ops.rb

#unshift(other) ⇒ Object

Use the concatentation (||) operator, reversing the order:

array_op.unshift(:a) # (a || array)
[View source]

245
246
247
# File 'lib/sequel/extensions/pg_array_ops.rb', line 245

def unshift(other)
  array_op(CONCAT, [wrap_array(other), self])
end