Only dump schema if schema_format is :ruby

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-10-14 16:10:02 +00:00
parent e2fc88eef4
commit 94a05920e1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
Rake::Task[:db_schema_dump].invoke
Rake::Task[:db_schema_dump].invoke if ActiveRecord::Base.schema_format == :ruby
end
desc "Load fixtures into the current environment's database"