1
0
Fork 0
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:
Mike Vincent 2010-01-24 20:18:52 -06:00 committed by Lee Hambley
parent fec72c8aa3
commit a69d76d3a1

View file

@ -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