Use the correct scope for Rake tasks

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2536 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-10-12 01:07:57 +00:00
parent 8946804b8a
commit 6823f57b27

@ -1,7 +1,7 @@
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("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
Task[:db_schema_dump].invoke
Rake::Task[:db_schema_dump].invoke
end
desc "Load fixtures into the current environment's database"