Uncomment gem "image_processing", ">= 1.2" on Gemfile.
Run bundle install.
Run rails active_storage:install to generate a migration, it will create 3 tables: active_storage_blobs, active_storage_variant_records and active_storage_attachments.
Run rails db:migrate.