Fixes the migrate issues and updated ruby version