Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix deploy:migrations to use latest_release

This file sure could use some tests of some sort.
  • Loading branch information...
commit a69d76d3a1c4e266a77c3e6e97325c357fb4edf0 1 parent fec72c8
@shame shame authored leehambley committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/capistrano/recipes/deploy.rb
View
3  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}"
end
- puts "#{migrate_target} => #{directory}"
run "cd #{directory}; #{rake} RAILS_ENV=#{rails_env} #{migrate_env} db:migrate"
end

0 comments on commit a69d76d

Please sign in to comment.
Something went wrong with that request. Please try again.