Skip to content

Commit

Permalink
Avoid warning while running migrations on multiple servers (capistran…
Browse files Browse the repository at this point in the history
  • Loading branch information
littldr committed Dec 11, 2016
1 parent 0ae9ea9 commit 653b20e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# [master][]

* Diff db directory recursively
* Avoid warning while running migrations on multiple servers (#189)
* Your contribution here!

# [1.2.0][] (Oct 25 2016)
Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace :deploy do
info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db)'
else
info '[deploy:migrate] Run `rake db:migrate`'
invoke :'deploy:migrating'
invoke :'deploy:migrating' unless Rake::Task[:'deploy:migrating'].already_invoked
end
end
end
Expand Down

0 comments on commit 653b20e

Please sign in to comment.