Multi-currency support #425
Reference in New Issue
Block a user
Delete Branch "feature/currency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
There's so much here that it may genuinely be difficult to actually fully review this (not to mention, it requires a $12/mo Open Exchange Rates account to pull in exchange rate data).
But, putting it here for sanity checks on the code.
The direction of this makes sense to me (GoodJob looks interesting, nice that we can avoid the extra Redis dependency!). Eventually it might be nice to abstract away the "original" and "converted" concept away from the views and have a
account.balanceinstance method to use, but nothing that can't be improved later!@@ -0,0 +7,4 @@remove_column :accounts, :balance_centsremove_column :accounts, :balance_currencyremove_column :accounts, :currencyGuessing we're cool with dropping existing balances at this stage?
@@ -0,0 +15,4 @@# <<: *default## production:# <<: *defaultDelete?
@@ -0,0 +7,4 @@remove_column :accounts, :balance_centsremove_column :accounts, :balance_currencyremove_column :accounts, :currencyYeah. Especially since those
balance_columns were associated with that Money gem. Not worth the hassle.@@ -0,0 +15,4 @@# <<: *default## production:# <<: *defaultIt's all just commented out for now. We'll likely customize some of it as we add more background jobs.
I agree that I don't loovvvvve having both, but yeah...can abstract once we get more data coming in for things like transactions. That way we don't prematurely abstract things.
YOLO. Let's do this. 🫣
@@ -29,3 +32,3 @@gem "jbuilder"gem "tzinfo-data", platforms: %i[ windows jruby ]gem "money-rails", "~> 1.12"gem "faraday"could you please explain the reasoning behind not using this gem?
@@ -29,3 +32,3 @@gem "jbuilder"gem "tzinfo-data", platforms: %i[ windows jruby ]gem "money-rails", "~> 1.12"gem "faraday"No major benefit to using it.
@@ -29,3 +32,3 @@gem "jbuilder"gem "tzinfo-data", platforms: %i[ windows jruby ]gem "money-rails", "~> 1.12"gem "faraday"4d5d35b277/db/migrate/20240206031739_replace_money_field.rb (L3)This migration fails without it!
@@ -29,3 +32,3 @@gem "jbuilder"gem "tzinfo-data", platforms: %i[ windows jruby ]gem "money-rails", "~> 1.12"gem "faraday"I had this issue, It should be fixed by #438