Upgrading rails for security fixes (as well as a fix to a pgsql regression)