lib/alchemy/capistrano.rb in alchemy_cms-2.1.beta5 vs lib/alchemy/capistrano.rb in alchemy_cms-2.1.beta6
- old
+ new
@@ -47,9 +47,14 @@
run "cd #{current_path} && RAILS_ENV=production #{rake} alchemy:migrations:sync"
end
end
+ desc "Upgrades production database to current Alchemy CMS version"
+ task :upgrade do
+ run "cd #{current_path} && RAILS_ENV=production #{rake} alchemy:upgrade"
+ end
+
namespace :database_yml do
desc "Creates the database.yml file"
task :create do
db_config = ERB.new <<-EOF