I'm trying to retrieve all records that have expired_at as nil and expired_at greater than the current time.
I've tried this:
PriceRule.where("expired_at > ? OR expired_at = ?", DateTime.now, nil)
But that is only returning me the records expired_at greater than DateTime.now. Why is the nil being neglected?