When overriding a task in Capistrano v2, the original task was replaced. However, the Rake DSL on which Capistrano v3 is built is additive. According to the documentation . In most cases, you just want to use clear_actions, which removes the behavior of the specified tasks, but does not change its dependencies or comments:
namespace :deploy do Rake::Task["migrate"].clear_actions task :migrate do puts "no migration" end end
source share