mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Fix deploy:migrations to use latest_release
This file sure could use some tests of some sort.
This commit is contained in:
parent
fec72c8aa3
commit
a69d76d3a1
1 changed files with 1 additions and 2 deletions
|
@ -391,11 +391,10 @@ namespace :deploy do
|
|||
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue