Upgrade migrations and gems