I was developing with rails 5.2.4, but I chose to downgrade because I wanted to manage the existing service and version together. Since the environment is built with docker, it is necessary to change the version of rails such as the PC you are using if it is local.
Gemfile
gem "rails", "5.1.6"
$ docker-compose run web bundle update
Since config.load_defaults of application.rb is 5.2, change it to 5.1
application.rb
config.load_defaults 5.1
Removed active_storage line in application.js
application.js
//=require active_storage
Removed active_storage line in config
production.rb
config.active_storage.service = :local
development.rb
config.active_storage.service = :local
Create secrets.yml under config and create a key with bundle exec rake secret
.
Reference article https://qiita.com/tanishilove/items/2801059830e5af1262d7
Change config.active_record.verbose_query_logs to false
development.rb
config.active_record.verbose_query_logs = false
I don't think there are many opportunities to lower the version, but I hope it will be helpful in case of trouble.
Recommended Posts