please use lambda. like `-> { where("assignee_id IS NOT NULL") }`