From c2577706360c255d845a9d501914dc209ee05c9a Mon Sep 17 00:00:00 2001 From: Eddie Maldonado Date: Wed, 6 Nov 2024 10:39:36 -0500 Subject: [PATCH] fixup! refactor: make use of helper functions in Arrow.Shuttles for changes --- lib/arrow/shuttles/shuttle.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/arrow/shuttles/shuttle.ex b/lib/arrow/shuttles/shuttle.ex index 0e510277..31412bd1 100644 --- a/lib/arrow/shuttles/shuttle.ex +++ b/lib/arrow/shuttles/shuttle.ex @@ -8,7 +8,9 @@ defmodule Arrow.Shuttles.Shuttle do field :shuttle_name, :string field :disrupted_route_id, :string - has_many :routes, Arrow.Shuttles.Route, preload_order: [asc: :direction_id] + has_many :routes, Arrow.Shuttles.Route, + preload_order: [asc: :direction_id], + on_replace: :delete timestamps(type: :utc_datetime) end