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