ArgumentError: You tried to define an enum named "industry" on the model "Company", but this will generate a instance method "horeca?", which is already defined by another enum.
After checking the logs found out that a call to imagemagik was the culprit.
Works don't work by default.
There where 2 issues: rails12_factor gem was installed and it's no longer needed on Rails 5
Also the following ENV vars need to be set in order to get the logs inside the current/logs
RAILS_SERVE_STATIC_FILES and RAILS_LOG_TO_STDOUT ENV need to be true.
Still not working. I don't want to salvage old images.
I want to upload new ones once I create a registration.
Is there a way to check the logs to see what is happening ?
Thank you for your reply Olvier.
I added the line to deploy.rb and also I checked the server.
public/system is present in current folder, in shared and also on releases but the issue persists.
Do I need to create the also the folder for :class and :partition inside the public/system?
Can it be a folder permissions issue ?
I deployed using the "Deploy Ruby on Rails" guide.
However I paperclip attachments no longer work in production. Got the below error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Any suggestions ?
Also I don't know where exactly I can check the logs. current/log/production is empty