fix Rails version dependencies