diff --git a/priv/repo/migrations/202404161637000_composite_index_to_positions_on_odometer.exs b/priv/repo/migrations/202404161637000_composite_index_to_positions_on_odometer.exs new file mode 100644 index 0000000000..07889c0b61 --- /dev/null +++ b/priv/repo/migrations/202404161637000_composite_index_to_positions_on_odometer.exs @@ -0,0 +1,7 @@ +defmodule TeslaMate.Repo.Migrations.AddCompositeIndexToPositionsOnOdometer do + use Ecto.Migration + + def change do + create index(:positions, [:car_id, :odometer]) + end +end