Sha256: 5fd148d3b8cd9f91610461cc30a0383b3765091391271949cc5f71fc07a6b10a
Contents?: true
Size: 420 Bytes
Versions: 20
Compression:
Stored size: 420 Bytes
Contents
namespace :iqvoc do desc 'Resets thesaurus and clear all concepts, collections, labels and (pending) jobs' task :reset => :environment do stdout_logger = Logger.new(STDOUT) stdout_logger.level = Logger::INFO DatabaseCleaner.strategy = :truncation, { except: Iqvoc.truncation_blacklist } DatabaseCleaner.clean stdout_logger.info I18n.t("txt.views.dashboard.reset_success") end end
Version data entries
20 entries across 20 versions & 1 rubygems