Sha256: 1b321262a546c4bd8d094b14d6006f14313e6361e021ad91fc88b4158c13c712
Contents?: true
Size: 673 Bytes
Versions: 6
Compression:
Stored size: 673 Bytes
Contents
namespace :sufia do namespace :db do desc "delete all Generic Files in Fedora and Solr (This may take some time...)." task deleteAll: :environment do unless Rails.env.integration? puts "Warning: this task is only for the integration environment!" next end GenericFile.find(:all, rows: GenericFile.count).each(&:delete) end desc "delete 500 Generic Files from Fedora and Solr." task delete500: :environment do unless Rails.env.integration? puts "Warning: this task is only for the integration environment!" next end GenericFile.find(:all, rows: 500).each(&:delete) end end end
Version data entries
6 entries across 6 versions & 1 rubygems