fix: add composite type storage_alias

This commit is contained in:
Zach Daniel 2023-11-27 16:23:35 -05:00
parent bc04f1bf57
commit 44ac7c7fc2
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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},