Back to Spree

Upgrading to Spree 5.1

docs/developer/upgrades/5.0-to-5.1.mdx

5.4.2582 B
Original Source
<Info> Before proceeding to upgrade, please ensure you're at [Spree 5.0](/developer/upgrades/4.10-to-5.0) </Info>

Upgrade steps

1. Update gems

bash
bundle update

2. Install and run missing migrations

bash
bin/rake spree:install:migrations && bin/rails db:migrate

3. Migrate admin user accounts to the new system

Spree 5.1 introduces a new better way of managing admin user accounts. To ensure your existing admin user accounts are migrated to the new system, run the following command:

bash
bin/rake db:migrate_admin_users_to_role_users