Add explicit ruby version and pg to avoid compatibility issues.