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

Version Path
iqvoc-4.14.5 lib/tasks/reset.rake
iqvoc-4.14.4 lib/tasks/reset.rake
iqvoc-4.13.2 lib/tasks/reset.rake
iqvoc-4.13.0 lib/tasks/reset.rake
iqvoc-4.12.1 lib/tasks/reset.rake
iqvoc-4.12.0 lib/tasks/reset.rake
iqvoc-4.11.1 lib/tasks/reset.rake
iqvoc-4.11.0 lib/tasks/reset.rake
iqvoc-4.10.0 lib/tasks/reset.rake
iqvoc-4.9.0 lib/tasks/reset.rake
iqvoc-4.8.2 lib/tasks/reset.rake
iqvoc-4.8.1 lib/tasks/reset.rake
iqvoc-4.8.0 lib/tasks/reset.rake
iqvoc-4.7.0 lib/tasks/reset.rake
iqvoc-4.6.1 lib/tasks/reset.rake
iqvoc-4.5.2 lib/tasks/reset.rake
iqvoc-4.6.0 lib/tasks/reset.rake
iqvoc-4.5.1 lib/tasks/reset.rake
iqvoc-4.5.0 lib/tasks/reset.rake
iqvoc-4.4.0 lib/tasks/reset.rake