model missing required attr_accessor for 'photo_file_name' when uploading with paperclip and S3 on heroku

前端 未结 3 840
温柔的废话
温柔的废话 2020-12-10 05:20

Setting up paperclip with S3 in my linux dev environment was a snap -- everything works out of the box. However, I can\'t get it to work on Heroku.

When I try to do

3条回答
  •  [愿得一人]
    2020-12-10 05:47

    Found the problem: needed to update the database.

    heroku run rake:db:migrate

    heroku restart

    I had done what I thought would have accomplished the same thing already:

    heroku rake db:schema:load

    but perhaps that doesn't work or something went wrong in the process.

提交回复
热议问题