Exception: Nochmal::MigrationData::StatusExists
- Inherits:
-
StandardError
- Object
- StandardError
- Nochmal::MigrationData::StatusExists
- Defined in:
- lib/nochmal/migration_data/status_exists.rb
Overview
Provide some help when a migration got aborted.
This might happen if the OS or the user kills the process.
I suspect an OOM-Kill by the OS or Container-Runtime (K8s/OCP).
Instance Method Summary collapse
-
#initialize ⇒ StatusExists
constructor
A new instance of StatusExists.
Constructor Details
#initialize ⇒ StatusExists
Returns a new instance of StatusExists.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/nochmal/migration_data/status_exists.rb', line 11 def initialize super <<~ERROR It seems like the migration has already been started. You may want to resume with rails nochmal:carrierwave:resume Alternatively, you can manually delete the tables - #{Status.table_name} - #{Meta.table_name} and rerun the migration completely. If you want, you can examine the status by interacting with - Nochmal::MigrationData::Meta # class/attachment-level stats - Nochmal::MigrationData::Status # individual upload stats in your rails console. ERROR end |