padrino/padrino-framework — pull request #1615 by dariocravero (2014-03-05 21:00:15+00:00)
Title: Wait for external DB processes to finish before the task finishes.

Otherwise chaining rake tasks like `sq:drop sq:create` will end up in weird errors because the `dropdb` command might not have finished when `createdb` was run and hence result in an error.