Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix the spot looking for migrations

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 6c3be611d453ede071311f683445dafc258c04e2 1 parent 177934e
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/tasks/databases.rake
View
2  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"
Please sign in to comment.
Something went wrong with that request. Please try again.