Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

[Skip CI] improve Spree 5 migration guide

Damian Legawiec20d0d77bec27
diff --git a/docs/developer/upgrades/4.10-to-5.0.mdx b/docs/developer/upgrades/4.10-to-5.0.mdx
index 186f81b04a..f2760ef113 100644
--- a/docs/developer/upgrades/4.10-to-5.0.mdx
+++ b/docs/developer/upgrades/4.10-to-5.0.mdx
@@ -125,6 +125,15 @@ Before upgrading, please ensure you have the following prerequisites:
And that's it! You can now login to the admin panel and storefront using your existing users.
</Accordion>
+ <Accordion title="5. Migrate data to the new format">
+ In Spree 5 we changed a bit of the data in some models so you will need to run these commands to fix it:
+
+ #### Taxons
+
+ ```ruby
+ Spree::Taxon.all.each { |t| t.set_pretty_name; t.save }
+ ```
+ </Accordion>
</AccordionGroup>
## Read the release notes