Heroku没有在Rails应用程序中设置布尔字段 [英] Heroku doesn't set boolean field in rails app

查看:71
本文介绍了Heroku没有在Rails应用程序中设置布尔字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

它将参数传递为replace_emails,这是正确的.从日志中:

It's passing the parameter as replacement_emails, which is correct. From the log:

Parameters: {"utf8"=>"✓", "authenticity_token"=> ... "replacement_emails"=>"1"}, "commit"=>"submit", "id"=>"1"}

但是它没有在数据库中设置.日志中没有错误消息,什么也没有.它可以与SQLite一起开发.

But it's not getting set in the database. No error message in the log, nothing. It works in development with SQLite.

有什么想法吗?关于为什么它可以在Heroku上开发但不能在生产中使用的原因?

Any thoughts? On why it works in development but no in production on Heroku?

推荐答案

对部署进行回滚后,然后重新部署-它突然起作用.不知道出什么问题了.

After doing a rollback of the deployment, then re-deploying -- it just suddenly works. Not sure what was wrong.

这篇关于Heroku没有在Rails应用程序中设置布尔字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆