lib/capistrano/data_migrate/migrate.rb in data_migrate-3.0.0 vs lib/capistrano/data_migrate/migrate.rb in data_migrate-3.0.1
- old
+ new
@@ -1,7 +1,8 @@
namespace :deploy do
desc 'Runs rake data:migrate if migrations are set'
+ Rake::Task['deploy:migrate'].clear_actions
task :migrate => [:set_rails_env] do
on fetch(:migration_servers) do
conditionally_migrate = fetch(:conditionally_migrate)
info '[deploy:migrate] Checking changes in db/migrate or db/data' if conditionally_migrate