aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/MIT-LICENSE2
-rw-r--r--railties/CHANGELOG2
-rw-r--r--railties/lib/tasks/databases.rake5
3 files changed, 8 insertions, 1 deletions
diff --git a/activesupport/MIT-LICENSE b/activesupport/MIT-LICENSE
index c1caf0bfc1..dbe78035ba 100644
--- a/activesupport/MIT-LICENSE
+++ b/activesupport/MIT-LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2005-2006 David Heinemeier Hansson
+Copyright (c) 2005-2007 David Heinemeier Hansson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 6d1cffa067..351161279a 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Added db:migrate:redo for rerunning existing migrations #10431 [matt]
+
* RAILS_GEM_VERSION may be double-quoted also. #10443 [James Cox]
* Update rails:freeze:gems to work with RubyGems 0.9.5. [Jeremy Kemper]
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake
index 54f9beaede..f1a8e10170 100644
--- a/railties/lib/tasks/databases.rake
+++ b/railties/lib/tasks/databases.rake
@@ -86,6 +86,11 @@ namespace :db do
Rake::Task["db:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
end
+ namespace :migrate do
+ desc 'Rollbacks the database one migration and re migrate up. If you want to rollback more than one step, define STEP=x'
+ task :redo => [ 'db:rollback', 'db:migrate' ]
+ end
+
desc 'Rolls the schema back to the previous version. Specify the number of steps with STEP=n'
task :rollback => :environment do
step = ENV['STEP'] ? ENV['STEP'].to_i : 1