Upgrade rails to version 4