diff --git a/core/lib/tasks/upgrade.rake b/core/lib/tasks/upgrade.rake index d57aba14e43..cc784e2f48f 100644 --- a/core/lib/tasks/upgrade.rake +++ b/core/lib/tasks/upgrade.rake @@ -2,12 +2,14 @@ namespace :solidus do namespace :upgrade do - desc "Upgrade Solidus to version 2.11" - task two_point_eleven: [ - 'solidus:migrations:migrate_default_billing_addresses_to_address_book:up', - 'solidus:migrations:migrate_address_names:up' + task three_point_zero: [ + 'railties:install:migrations', + 'db:migrate' ] do - puts "Your Solidus install is ready for Solidus 2.11" + puts "Your Solidus install is ready for Solidus 3.0" end end + + desc "Upgrade to the current Solidus version" + task upgrade: 'upgrade:three_point_zero' end diff --git a/core/solidus_core.gemspec b/core/solidus_core.gemspec index 1cb01114fb6..76fba589d06 100644 --- a/core/solidus_core.gemspec +++ b/core/solidus_core.gemspec @@ -42,4 +42,24 @@ Gem::Specification.new do |s| s.add_dependency 'kt-paperclip', '~> 6.3' s.add_dependency 'ransack', '~> 2.0' s.add_dependency 'state_machines-activerecord', '~> 0.6' + + s.post_install_message = <<-MSG +------------------------------------------------------------- + Thank you for using Solidus +------------------------------------------------------------- +If this is a fresh install, don't forget to run the Solidus +installer with the following command: + +$ bin/rails g solidus:install + +If you are updating Solidus from an older version, please run +the following commands to complete the update: + +$ bin/rails solidus:upgrade + +Please report any issues at: +- https://github.com/solidusio/solidus/issues +- http://slack.solidus.io/ +------------------------------------------------------------- +MSG end