lib/capistrano/data_migrate/migrate.rb in data_migrate-5.3.1 vs lib/capistrano/data_migrate/migrate.rb in data_migrate-5.3.2

- old
+ new

@@ -5,13 +5,12 @@ 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 - if conditionally_migrate && ( - test("diff -q #{release_path}/db/migrate #{current_path}/db/migrate") || - test("diff -q #{release_path}/db/data #{current_path}/db/data") - ) + if conditionally_migrate && + test("diff -q #{release_path}/db/migrate #{current_path}/db/migrate") && + test("diff -q #{release_path}/db/data #{current_path}/db/data") info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db/migrate or db/data)' else info '[deploy:migrate] Run `rake db:migrate:with_data`' invoke :'deploy:migrating_with_data' end