lib/capistrano/tasks/migrations.rake in capistrano-rails-1.1.8 vs lib/capistrano/tasks/migrations.rake in capistrano-rails-1.2.0

- old
+ new

@@ -4,12 +4,12 @@ desc 'Runs rake db:migrate if migrations are set' task :migrate => [:set_rails_env] do on fetch(:migration_servers) do conditionally_migrate = fetch(:conditionally_migrate) - info '[deploy:migrate] Checking changes in /db/migrate' if conditionally_migrate - if conditionally_migrate && test("diff -q #{release_path}/db/migrate #{current_path}/db/migrate") - info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db/migrate)' + info '[deploy:migrate] Checking changes in db' if conditionally_migrate + if conditionally_migrate && test("diff -q #{release_path}/db #{current_path}/db") + info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db)' else info '[deploy:migrate] Run `rake db:migrate`' invoke :'deploy:migrating' end end