Closed axelclark closed 11 months ago
Thanks much for the PR, greatly appreciated.
I've published ex_money_sql version 1.10.2 with the following changelog entry:
Don't propagate some Ecto schema fields in Money.Ecto.Composite.Type.init/2
. This change deletes additional Ecto.Schema.field/3
options so they don't get loaded as format_options. Thanks to @axelclark for the PR. Closes #40.
Fix Changelog headings and whitespace. Thanks to @c4710n for the PR. Closes #39.
Thanks again for the PR.
Problem: I was attempting to rename one of my fields with a
Money.Ecto.Composite.Type
while keeping the source column in the db the same, following this strategy.However, the change caused my tests to fail because the
Money
struct loaded from the db had thesource: :db_col
in theformat_options
.Proposed Solution: Deletes additional Ecto.Schema.field/3 options so they don't get loaded as
format_options
.