Browse files

Fix deploy:migrations to use latest_release

This file sure could use some tests of some sort.
  • Loading branch information...
1 parent fec72c8 commit a69d76d3a1c4e266a77c3e6e97325c357fb4edf0 @shame shame committed with leehambley Jan 25, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/capistrano/recipes/deploy.rb
@@ -391,11 +391,10 @@ def try_runner(*args)
directory = case migrate_target.to_sym
when :current then current_path
- when :latest then current_release
+ when :latest then latest_release
else raise ArgumentError, "unknown migration target #{migrate_target.inspect}"
- puts "#{migrate_target} => #{directory}"
run "cd #{directory}; #{rake} RAILS_ENV=#{rails_env} #{migrate_env} db:migrate"

0 comments on commit a69d76d

Please sign in to comment.