Sha256: 512fc59e998f74b4095f510ddc8bf04035e0597448c8f5ab9f9f603a3234ccb3

Contents?: true

Size: 231 Bytes

Versions: 14

Compression:

Stored size: 231 Bytes

Contents

namespace :whoops do
  desc "Data migration to set the event count, as of 0.2.4"
  task :set_event_count => :environment do
    Whoops::EventGroup.all.each do |e|
      e.event_count = e.events.count
      e.save
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
whoops-0.5.5 lib/tasks/whoops.rake
whoops-0.5.4 lib/tasks/whoops.rake
whoops-0.5.3 lib/tasks/whoops.rake
whoops-0.5.2 lib/tasks/whoops.rake
whoops-0.5.1 lib/tasks/whoops.rake
whoops-0.5.0 lib/tasks/whoops.rake
whoops-0.4.0 lib/tasks/whoops.rake
whoops-0.3.5 lib/tasks/whoops.rake
whoops-0.3.4 lib/tasks/whoops.rake
whoops-0.3.3 lib/tasks/whoops.rake
whoops-0.3.2 lib/tasks/whoops.rake
whoops-0.3.1 lib/tasks/whoops.rake
whoops-0.3 lib/tasks/whoops.rake
whoops-0.2.4 lib/tasks/whoops.rake