Class: Nochmal::MigrationData::Status

Inherits:
ActiveRecord::Base
  • Object
show all
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_messageObject



22
23
24
# File 'lib/nochmal/migration_data/status.rb', line 22

def missing_message
  "#{filename} was not found, but was attached to #{record}"
end