Skip to content

Commit

Permalink
refactor: remove unneeded on_replace: :delete
Browse files Browse the repository at this point in the history
  • Loading branch information
lemald committed Nov 6, 2024
1 parent fff413d commit 95da1f7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/arrow/shuttles/shuttle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ 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],
on_replace: :delete
has_many :routes, Arrow.Shuttles.Route, preload_order: [asc: :direction_id]

timestamps(type: :utc_datetime)
end
Expand Down

0 comments on commit 95da1f7

Please sign in to comment.