finish rails verson update and devise version update and migration update