finish rails verson update and devise version update and migration update
修正case when的语法错误
for i18n bug
更改源