diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-12 00:02:11 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-10-12 00:02:11 +0000 |
commit | 6fe5f65d87d9fc49be3f937641da1fb225838dc7 (patch) | |
tree | 64091e3d3151d20fa0fab30588036965d661cdff /railties | |
parent | 2948910b569f6aa5374db1272032b3e367f2dd2a (diff) | |
download | rails-6fe5f65d87d9fc49be3f937641da1fb225838dc7.tar.gz rails-6fe5f65d87d9fc49be3f937641da1fb225838dc7.tar.bz2 rails-6fe5f65d87d9fc49be3f937641da1fb225838dc7.zip |
Migrating should also dump the latest schema
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2534 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/tasks/databases.rake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake index e3177b2bdf..acb03b3699 100644 --- a/railties/lib/tasks/databases.rake +++ b/railties/lib/tasks/databases.rake @@ -1,6 +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 end desc "Load fixtures into the current environment's database" |