1
試圖改寫這一條款:軌道4至where.not和OR
where("authorized_at IS NOT NULL OR paid_at IS NOT NULL")
到一個漂亮:
where.not(authorized_at: nil, paid_at: nil)
,但產生「authorized_at IS NOT NULL 和 paid_at IS NOT空值」。沒有辦法用where.not重寫它嗎?