aboutsummaryrefslogtreecommitdiffstats
path: root/railties/fresh_rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'railties/fresh_rakefile')
-rwxr-xr-xrailties/fresh_rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/fresh_rakefile b/railties/fresh_rakefile
index ac17c75546..44d16b820e 100755
--- a/railties/fresh_rakefile
+++ b/railties/fresh_rakefile
@@ -189,5 +189,5 @@ end
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.migrate(File.dirname(__FILE__) + '/db/migrate/', ENV["VERSION"])
+ ActiveRecord::Migrator.migrate(File.dirname(__FILE__) + '/db/migrate/', ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
end \ No newline at end of file