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