Paperclip-需要在heroku上生成迁移吗?

时间:2018-01-12 17:27:26

标签: ruby-on-rails heroku paperclip

我让Paperclip(和AWS)在我的Rails应用程序上本地工作以上传/保存头像。但是,当我部署时,我收到此错误model missing required attr_accessor for 'image_file_name'。我注意到我的本地表确实有image_file_nameimage_content_typeimage_file_sizeimage_updated_at的其他Paperclip列,但我的Heroku数据库没有这些额外的列。

这是否意味着我需要为已部署的(Heroku)表生成另一个迁移?这就像我为当地人做的那样......跑步rails generate Paperclip <table> image?或者我如何在Heroku上做到这一点?

0 个答案:

没有答案