Sha256: b418be968ce7ba3a3ff1fd5a2eca3b5b505202bb2ef2ffc612b8567a09172644

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

 namespace :curation_concerns do
  namespace :migrate do

    desc "Migrate audit logs"
    task audit_logs: :environment do
      ChecksumAuditLog.all.each do |cs|
        cs.file_set_id = cs.file_set_id.delete "#{CurationConcerns.config.redis_namespace}:"
        cs.save
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
curation_concerns-models-0.6.0 lib/tasks/migrate.rake
curation_concerns-models-0.5.0 lib/tasks/migrate.rake
curation_concerns-models-0.4.0 lib/tasks/migrate.rake
curation_concerns-models-0.3.0 lib/tasks/migrate.rake
curation_concerns-models-0.2.0 lib/tasks/migrate.rake