Ruby on rails 4 TypeError:封送处理文件格式不兼容(无法读取)

Ruby on rails 4 TypeError:封送处理文件格式不兼容(无法读取),ruby-on-rails-4,devise,Ruby On Rails 4,Devise,我在rails中使用designe登录,但每当我访问localhost:3000/users/sign\u in 我有这个错误 !! #<TypeError: incompatible marshal file format (can't be read) format version 4.8 required; 91.91 given> # Dogit clean-d-x-f可能可以解决此问题。警告:这将删除.env等文件。。。自担风险使用每个重要文件都应该添加到git中

我在rails中使用designe登录,但每当我访问localhost:3000/users/sign\u in 我有这个错误

!! #<TypeError: incompatible marshal file format (can't be read)
    format version 4.8 required; 91.91 given>

# Do
git clean-d-x-f
可能可以解决此问题。

警告:这将删除
.env
等文件。。。自担风险使用每个重要文件都应该添加到git中,因此如果您想保留.env,只需将其添加到git中即可。如果您想保持安全性,请在bash概要文件中导出env变量。