lib/caploy/recipes/database.rb in caploy-0.1.12 vs lib/caploy/recipes/database.rb in caploy-0.2.0

- old
+ new

@@ -46,10 +46,10 @@ after 'deploy:make_symlinks', 'deploy:dynamic_migrations' if fetch(:dynamic_migration, false) task :dynamic_migrations do from = source.next_revision(current_revision) if capture("cd #{latest_release} && #{source.local.log(from)} db/migrate | wc -l").to_i > 0 - run "cd #{current_release} && RAILS_ENV=#{rails_env} bundle exec rake db:migrate" + run "cd #{current_release} && RAILS_ENV=#{rails_env} #{rake} db:migrate" logger.info "New migrations added - running migrations." else logger.info "Skipping migrations - there are not any new." end end \ No newline at end of file