Created
November 21, 2008 18:33
-
-
Save Peeja/27542 to your computer and use it in GitHub Desktop.
If you've got pending migrations, tells you why all your tests/specs failed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you've got pending migrations, tells you why all your tests/specs failed. | |
module Autotest::Migrations | |
Autotest.add_hook :ran_command do |autotest| | |
if autotest.class.name =~ /Rails/ | |
system "rake db:abort_if_pending_migrations" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment