HabitatMap/AirCasting

View on GitHub
db/migrate/20120830125659_recalc_streams_measurements_count.rb

Summary

Maintainability
A
0 mins
Test Coverage
class RecalcStreamsMeasurementsCount < ActiveRecord::Migration[4.2]
  def up
    Stream.find_each do |stream|
      Stream.reset_counters(stream.id, :measurements)
    end
  end

  def down; end
end