mirror of
https://github.com/ash-project/ash_money.git
synced 2024-09-19 12:53:11 +12:00
fix: add composite type storage_alias
This commit is contained in:
parent
bc04f1bf57
commit
44ac7c7fc2
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
2
mix.exs
2
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},
|
||||
|
|
Loading…
Reference in a new issue