Ruby on rails 设计令牌认证和rails 5.2.0的兼容性

Ruby on rails 设计令牌认证和rails 5.2.0的兼容性,ruby-on-rails,devise,amazon-elastic-beanstalk,devise-token-auth,Ruby On Rails,Devise,Amazon Elastic Beanstalk,Devise Token Auth,您好,我正在使用Desive_token_auth和rails 5.1.6。当我将rails版本更新为5.2.1以便可以使用acts_as_favoritor 2.1.0时,我的elasticbeanstalk环境日志中出现了错误: Column `tokens` of type ActiveRecord::Type::Json does not support `serialize` feature. Usually it means that you are trying to use `s

您好,我正在使用Desive_token_auth和
rails 5.1.6
。当我将
rails
版本更新为
5.2.1
以便可以使用
acts_as_favoritor 2.1.0
时,我的
elasticbeanstalk
环境日志中出现了错误:

Column `tokens` of type ActiveRecord::Type::Json does not support `serialize` feature. Usually it means that you are trying to use `serialize`

是否有任何特定版本的designe_token_auth可用于
rails 5.2.1

我猜这意味着您的数据库不支持JSON数据类型


这是一个答案。答案是,问题的出现是因为OP的数据库不支持JSON数据类型,这意味着解决方案可以是向数据库添加JSON支持或删除代码中的JSON依赖项。如果你觉得这是错误的或没有用,正确的做法是投反对票,而不是将其标记为没有答案@RobertColumbia@ElFadelAnas我没说是你干的。有人报告说Ig Norand的回答不是一个答案(NAA),我想澄清这是一个答案,不值得简要删除。@RobertColumbia对误解表示抱歉