dawarich/db/data/20250123151849_create_paths_for_trips.rb
2025-01-24 15:58:44 +01:00

13 lines
258 B
Ruby

# frozen_string_literal: true
class CreatePathsForTrips < ActiveRecord::Migration[8.0]
def up
Trip.find_each do |trip|
Trips::CreatePathJob.perform_later(trip.id)
end
end
def down
raise ActiveRecord::IrreversibleMigration
end
end