aboutsummaryrefslogtreecommitdiffstats
path: root/railties/fresh_rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'railties/fresh_rakefile')
-rwxr-xr-xrailties/fresh_rakefile4
1 files changed, 2 insertions, 2 deletions
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