aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-09 15:46:29 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-09 15:46:29 +0000
commit47a3bafe26fb5f773ac082162c3e595ce80d9ad7 (patch)
tree1574a44c26b5f1102cd96b188933728289f7c7cb /railties
parent8266867881e708813eec3c359869d14098e3789d (diff)
downloadrails-47a3bafe26fb5f773ac082162c3e595ce80d9ad7.tar.gz
rails-47a3bafe26fb5f773ac082162c3e595ce80d9ad7.tar.bz2
rails-47a3bafe26fb5f773ac082162c3e595ce80d9ad7.zip
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. Added ActiveRecord::Migrator.migrate that can figure out whether to go up or down based on the target version and the current
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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