mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
11 lines
223 B
Ruby
11 lines
223 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RecalculateTripsDistance < ActiveRecord::Migration[8.0]
|
|
def up
|
|
Trip.find_each(&:enqueue_calculation_jobs)
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|