Class: Nochmal::MigrationData::Status
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Nochmal::MigrationData::Status
- Defined in:
- lib/nochmal/migration_data/status.rb
Overview
Track the status of individual uploads to be migrated
Instance Method Summary collapse
Instance Method Details
#migrated? ⇒ Boolean
14 15 16 |
# File 'lib/nochmal/migration_data/status.rb', line 14 def migrated? status.present? end |
#missing? ⇒ Boolean
18 19 20 |
# File 'lib/nochmal/migration_data/status.rb', line 18 def missing? status.to_s == "missing" end |
#missing_message ⇒ Object
22 23 24 |
# File 'lib/nochmal/migration_data/status.rb', line 22 def "#{filename} was not found, but was attached to #{record}" end |