Remove spree_users.ship_address_id and bill_address_id columns #4573
spaghetticode
started this conversation in
New Features or Ideas
Replies: 2 comments
-
Sounds good to me! It's nice to have a single source of truth for |
Beta Was this translation helpful? Give feedback.
0 replies
-
It makes total sense |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since the introduction of the user's address book, we've been relying on those fields on the user model less and less, to the point that nowadays we have just a couple of points in
core
where they're used and a few specs that verify those fields are kept in sync only in the address book specs.These fields don't impact the user's ship and bill address, as these are now
has_one :through
associations. Extracted from the address book:The areas where we still reference those fields are:
Spree::UserAddressBook#persist_order_address
Spree::UserAddressBook#persist_order_address
If they're actually so useless nowadays, I'm thinking it may be time to consider at least completely removing the remnants of the old functionality in the code (i.e. stop keeping those fields synced), and possibly entirely dropping the columns in a DB migration in order to clear some confusion.
Beta Was this translation helpful? Give feedback.
All reactions