View Source Money.Ecto.Composite.Type (Money SQL v1.11.0)
Implements the Ecto.Type behaviour for a user-defined Postgres composite type
called :money_with_currency
.
This is the preferred option for Postgres database since the serialized money amount is stored as a decimal number,