diff --git a/app/tasks/maintenance_tasks/task.rb b/app/tasks/maintenance_tasks/task.rb index 0f70c469..6b49d471 100644 --- a/app/tasks/maintenance_tasks/task.rb +++ b/app/tasks/maintenance_tasks/task.rb @@ -38,6 +38,10 @@ def available_tasks # An input to upload a CSV will be added in the form to start a Run. The # collection and count method are implemented. def csv_collection + if !defined?(ActiveStorage) || !ActiveStorage::Attachment.table_exists? + raise NotImplementedError, "Active Storage needs to be installed\n"\ + "To resolve this issue run: bin/rails active_storage:install" + end include(CsvCollection) end