mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
13 lines
265 B
Ruby
13 lines
265 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddCounterCacheToImports < ActiveRecord::Migration[7.1]
|
|
def up
|
|
Import.find_each do |import|
|
|
Import.reset_counters(import.id, :points)
|
|
end
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|