Heroku today sent me a notification which says that my postgres db has ~8k rows out of 10k rows allowed on free plan. So I came up with a simple solution how to remove ~2k rows. In fact, storing extra as jsonb even simplified the code in some places. The next step would be to get rid of accounts_balance_history table somehow.
In order to migrate existing entries in transactions_info table,
run heroku run mix ex_money.migrate_transactions_info.
Heroku today sent me a notification which says that my postgres db has ~8k rows out of 10k rows allowed on free plan. So I came up with a simple solution how to remove ~2k rows. In fact, storing
extra
asjsonb
even simplified the code in some places. The next step would be to get rid ofaccounts_balance_history
table somehow. In order to migrate existing entries intransactions_info
table, runheroku run mix ex_money.migrate_transactions_info
.