This guide will guide you through the upgrade process from version 2.0.10 to version 2.1.×.
endprologue.
WARNING. This guide assumes that you will be upgrading from version 2.0.10 of Refinery CMS. If your application is not up-to-date we strongly recommend for you to upgrade it to version 2.0.10 before trying to upgrade to version 2.1.0.
WARNING. Before continuing make sure you have a backup copy of your application and database in case something goes wrong.
Open up your application’s Gemfile and change the version of the refinerycms gem entry from 2.0.10 to 2.1.0.
After you complete the steps above your Gemfile should look like this:
gem “refinerycms”, “~> 2.1.0”
Now run bundle install and let it install new gems.
Go to the terminal and run following command:
rails generate refinery:cms
This command will do a couple of things:
- Add two css requires in application.css
- Update app/views/sitemap/index.xml.builder template
- Wrap config.action_mailer config in if config.respond_to?(:action_mailer) clause for each environment file located in app/config/environments
- Copy new migrations
- Run rake db:migrate and rake db:seed commands
NOTE: If you don’t want the generator to run rake db:migrate and rake db:seed commands pass the —skip_db option when invoking the generator:
rails generate refinery:cms —skip_db