Skip to content

Commit

Permalink
Only dump schema if schema_format is :ruby
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Oct 14, 2005
1 parent e2fc88e commit 94a0592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/tasks/databases.rake
@@ -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"
Expand Down

0 comments on commit 94a0592

Please sign in to comment.