Upgrades rails