From a4509ac4b90d12fee4b5b6da35c8ac4fd1d93f7f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 1 Dec 2006 05:43:35 +0000 Subject: [PATCH] Updated migrate action to use db:migrate task in Rails instead of the deprecated migrate task [DHH] git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@5657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- CHANGELOG | 2 ++ lib/capistrano/recipes/standard.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 621bc7ac..9b1a6b62 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Updated migrate action to use db:migrate task in Rails instead of the deprecated migrate task [DHH] + * Allow SSH user and port to be encoded in the hostname strings [Ezra Zygmuntowicz] * Fixed that new checkouts were not group-writable [DHH, Jamis Buck] diff --git a/lib/capistrano/recipes/standard.rb b/lib/capistrano/recipes/standard.rb index 59825983..62fa2d4a 100644 --- a/lib/capistrano/recipes/standard.rb +++ b/lib/capistrano/recipes/standard.rb @@ -158,7 +158,7 @@ task :migrate, :roles => :db, :only => { :primary => true } do end run "cd #{directory} && " + - "#{rake} RAILS_ENV=#{rails_env} #{migrate_env} migrate" + "#{rake} RAILS_ENV=#{rails_env} #{migrate_env} db:migrate" end desc <<-DESC