Ruby sequel 多个运算符

Ruby sequel multiple operators

如何添加多个运算符来应用此:

where deleted is not null and (status in ('PENDING', 'REMOVING') 
or (status='FAILED' and published_at is null))

与 Ruby 和 Sequel

解决方法是:

.exclude(deleted: nil)
.where(
  Sequel.|(
    { status: %w[PENDING REMOVING] },
    { status: 'FAILED', published_at: nil }
  )
)