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