Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only dump schema if schema_format is :ruby

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 94a05920e12026fb19c6f148187500675c272e68 1 parent e2fc88e
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/tasks/databases.rake
2  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
desc "Load fixtures into the current environment's database"
Please sign in to comment.
Something went wrong with that request. Please try again.