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