From 6c3be611d453ede071311f683445dafc258c04e2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 3 Sep 2005 16:22:28 +0000 Subject: Fix the spot looking for migrations git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/tasks/databases.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/lib/tasks/databases.rake') diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index 470fc07d35..b4b759c6f9 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -1,6 +1,6 @@ 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"] ? ENV["VERSION"].to_i : nil) + ActiveRecord::Migrator.migrate("#{RAILS_ROOT}/db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil) end desc "Load fixtures into the current environment's database" -- cgit v1.2.3