Sha256: c4159422720df972a9241b7e24b99e65f4ac50f531a3f79b399cd934766c068b

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

namespace :tessa do
  desc "Begins the migration of all Tessa assets to ActiveStorage."
  task :migrate => :environment do
    abort "Tessa::MigrateAssetsJob can no longer be performed because the Tessa connection was removed. "\
      "Please downgrade to tessa ~>1.0 and try again."
  end

  desc "Verifies that the migration has completed"
  task :verify => :environment do
    unless Tessa::MigrateAssetsJob.complete?
      state = Tessa::MigrateAssetsJob::ProcessingState.initialize_from_models

      abort "Tessa::MigrateAssetsJob not yet complete!  #{state.count} records remain to be migrated. "\
        "Please downgrade to tessa ~>1.0 and try again."
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tessa-2.0 lib/tasks/tessa.rake
tessa-1.2.0 lib/tasks/tessa.rake