Add ActiveStorage to your Rails app
Used 94 times
B Benjamin Darcet
Run this command in your Rails app directory in the terminal:
rails app:template LOCATION="https://railsbytes.com/script/zJosLx"
Review the code before running this template on your machine.
rails_command "active_storage:install" rails_command "db:migrate"