Skip to content

Commit

Permalink
fixup! refactor: make use of helper functions in Arrow.Shuttles for c…
Browse files Browse the repository at this point in the history
…hanges
  • Loading branch information
lemald committed Nov 6, 2024
1 parent bfb4fd6 commit c257770
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/arrow/shuttles/shuttle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c257770

Please sign in to comment.