aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-rw-r--r--railties/CHANGELOG7
-rwxr-xr-xrailties/fresh_rakefile4
2 files changed, 7 insertions, 4 deletions
diff --git a/railties/CHANGELOG b/railties/CHANGELOG
index 149c85e11d..35b4fc9ec3 100644
--- a/railties/CHANGELOG
+++ b/railties/CHANGELOG
@@ -1,8 +1,11 @@
*SVN*
-* Extend Ruby version check to include RUBY_RELEASE_DATE >= '2005-12-25', the final Ruby 1.8.2 release. #1674 [court3nay@gmail.com]
+* Added a VERSION parameter to the migrate task that allows you to do "rake migrate VERSION=34" to migrate to the 34th version traveling up or down depending on the current version
+
+* Extend Ruby version check to include RUBY_RELEASE_DATE >= '2005-12-25', the final Ruby 1.8.2 release #1674 [court3nay@gmail.com]
+
+* Improved documentation for environment config files #1625 [court3nay@gmail.com]
-* Improved documentation for environment config files. #1625 [court3nay@gmail.com]
*0.13.0*
diff --git a/railties/fresh_rakefile b/railties/fresh_rakefile
index 46bb73ef86..ac17c75546 100755
--- a/railties/fresh_rakefile
+++ b/railties/fresh_rakefile
@@ -187,7 +187,7 @@ task :clear_logs => :environment do
end
end
-desc "Migrate the database according to the migrate scripts in db/migrate"
+desc "Migrate the database according to the migrate scripts in db/migrate (only supported on PG/MySQL). A specific version can be targetted with VERSION=x"
task :migrate => :environment do
- ActiveRecord::Migrator.up(File.dirname(__FILE__) + '/db/migrate/')
+ ActiveRecord::Migrator.migrate(File.dirname(__FILE__) + '/db/migrate/', ENV["VERSION"])
end \ No newline at end of file