Class: Nochmal::MigrationData::Meta

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/nochmal/migration_data/meta.rb

Overview

Track the status of the whole migration

Instance Method Summary collapse

Instance Method Details

#done?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/nochmal/migration_data/meta.rb', line 11

def done?
  status.to_s == "done"
end

#to_sObject



15
16
17
18
19
20
# File 'lib/nochmal/migration_data/meta.rb', line 15

def to_s
  [
    record_type, "#", uploader_type, ": ",
    migrated, "/", expected, " -> ", status
  ].join
end