aboutsummaryrefslogtreecommitdiffstats
path: root/railties/fresh_rakefile
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-04 09:22:12 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-04 09:22:12 +0000
commitc570ebc1431f0954c6da84b7477688c9ace89830 (patch)
tree5481ce1533073caec1bd8da09d6f4c5710a0e9d6 /railties/fresh_rakefile
parenta43c227f844ab43c0bf3b1c6ae71002333f62a23 (diff)
downloadrails-c570ebc1431f0954c6da84b7477688c9ace89830.tar.gz
rails-c570ebc1431f0954c6da84b7477688c9ace89830.tar.bz2
rails-c570ebc1431f0954c6da84b7477688c9ace89830.zip
Added migrate task to default rakefile (this is still a sqlite/mysql feature only, please do pitch in)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
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