diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-14 16:10:02 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-14 16:10:02 +0000 |
commit | 94a05920e12026fb19c6f148187500675c272e68 (patch) | |
tree | 2f7005bba05e4c4ecf437e19a3206b4f5ee555af /railties/lib/tasks | |
parent | e2fc88eef49af4ca8e35ae78ce3221c947e168c7 (diff) | |
download | rails-94a05920e12026fb19c6f148187500675c272e68.tar.gz rails-94a05920e12026fb19c6f148187500675c272e68.tar.bz2 rails-94a05920e12026fb19c6f148187500675c272e68.zip |
Only dump schema if schema_format is :ruby
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2585 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/tasks')
-rw-r--r-- | railties/lib/tasks/databases.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index a2db15086e..87fde7a958 100644 --- a/railties/lib/tasks/databases.rake +++ b/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" |