Created
February 2, 2011 17:45
-
-
Save rantoniuk/808054 to your computer and use it in GitHub Desktop.
Backup before migration and migrate task.
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
namespace :project do desc "Backup before migration and migrate" | |
task :update => [:environment] do | |
Rake::Task["db:backup"].invoke | |
Rake::Task["db:migrate"].invoke | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment