Skip to content

Commit

Permalink
fix: add composite type storage_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Nov 27, 2023
1 parent bc04f1b commit 44ac7c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ash_money/types/money.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 44ac7c7

Please sign in to comment.