From e6d5d5e3987aa8cb46f6ed8f610aaf3dd86ba91e Mon Sep 17 00:00:00 2001 From: Meag Harty <149533950+meagharty@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:58:33 -0400 Subject: [PATCH] fix: fix default preload order to be by direction_id --- lib/arrow/shuttles/shuttle.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/arrow/shuttles/shuttle.ex b/lib/arrow/shuttles/shuttle.ex index c127fc9d..dded4de7 100644 --- a/lib/arrow/shuttles/shuttle.ex +++ b/lib/arrow/shuttles/shuttle.ex @@ -7,7 +7,7 @@ defmodule Arrow.Shuttles.Shuttle do field :status, Ecto.Enum, values: [:draft, :active, :inactive] field :shuttle_name, :string field :disrupted_route_id, :string - has_many :routes, Arrow.Shuttles.Route + has_many :routes, Arrow.Shuttles.Route, preload_order: [asc: :direction_id] timestamps(type: :utc_datetime) end