Upgrading for use with rails4