Sha256: 6666e6d483b1e4a5dee34d8f8512cffd5a6244425c60c96c6be38b84514cc3eb

Contents?: true

Size: 298 Bytes

Versions: 3

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

namespace :rrj do
  desc 'Delete all instances in database.'
  task delete_instances: :environment do
    @timelaps = Time.now.utc

    RubyRabbitmqJanus::Models::JanusInstance.destroy_all

    Rails.logger.info "Executed in #{Time.now.utc - @timelaps} ms"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby_rabbitmq_janus-2.1.0.pre.130 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-2.1.0.pre.129 lib/tasks/delete_all_instance.rake
ruby_rabbitmq_janus-2.1.0.pre.128 lib/tasks/delete_all_instance.rake