From 44ac7c7fc2e387077921071f4661869545b9b213 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Mon, 27 Nov 2023 16:23:35 -0500 Subject: [PATCH] fix: add composite type storage_alias --- lib/ash_money/types/money.ex | 2 +- mix.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ash_money/types/money.ex b/lib/ash_money/types/money.ex index 36f37e4..c88443d 100644 --- a/lib/ash_money/types/money.ex +++ b/lib/ash_money/types/money.ex @@ -34,7 +34,7 @@ defmodule AshMoney.Types.Money do @impl true def composite_types(_constraints) do - [{:currency, :string, []}, {:amount, :decimal, []}] + [{:currency, :currency_code, :string, []}, {:amount, :decimal, []}] end @impl Ash.Type diff --git a/mix.exs b/mix.exs index 3173f9d..ffd3f11 100644 --- a/mix.exs +++ b/mix.exs @@ -142,7 +142,7 @@ defmodule AshMoney.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ - {:ash, ash_version("~> 2.0 and >= 2.17.5")}, + {:ash, ash_version("~> 2.0 and >= 2.17.6")}, {:ex_money, "~> 5.15"}, {:ex_money_sql, "~> 1.0"}, {:ex_doc, github: "elixir-lang/ex_doc", only: [:dev, :test], runtime: false},