Complete rails4 upgrade