aboutsummaryrefslogtreecommitdiffstats
path: root/railties/fresh_rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'railties/fresh_rakefile')
-rwxr-xr-xrailties/fresh_rakefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/fresh_rakefile b/railties/fresh_rakefile
index 62e913aa4f..46bb73ef86 100755
--- a/railties/fresh_rakefile
+++ b/railties/fresh_rakefile
@@ -186,3 +186,8 @@ task :clear_logs => :environment do
f.close
end
end
+
+desc "Migrate the database according to the migrate scripts in db/migrate"
+task :migrate => :environment do
+ ActiveRecord::Migrator.up(File.dirname(__FILE__) + '/db/migrate/')
+end \ No newline at end of file