scottohara / loot

An implementation of some of the core MS Money features in Ruby on Rails
MIT License
4 stars 3 forks source link

Store account type and status in proper case #101

Open scottohara opened 9 years ago

scottohara commented 9 years ago

account.account_type and account.status are currently stored in lower case.

This means for presentation in the account index/edit/delete views, we have to manually capitalise the first letter, then convert back to lower case on save.

It would be far simpler if we stored these values in the format we display them as (which is also what we do for transaction.transaction_type.

This would mean finding/updating every hardcoded occurrence of these values in both the front and back end; and then running a migration to update the values in the database.