aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-06-16 03:47:15 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-06-16 03:47:15 -0700
commit8e74a434b8f13bd1697ad556c9fd1ef0217e594e (patch)
tree4d7f3aa25525b04b13e0fd7263c0281c1c77c4fe /railties
parent899d63b997094f066ffd49a3e58d29c07143999d (diff)
downloadrails-8e74a434b8f13bd1697ad556c9fd1ef0217e594e.tar.gz
rails-8e74a434b8f13bd1697ad556c9fd1ef0217e594e.tar.bz2
rails-8e74a434b8f13bd1697ad556c9fd1ef0217e594e.zip
Don't dump schema for every test run, just when migrations are run
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/tasks/databases.rake6
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/tasks/databases.rake b/railties/lib/tasks/databases.rake
index 8077d0a401..70de33e346 100644
--- a/railties/lib/tasks/databases.rake
+++ b/railties/lib/tasks/databases.rake
@@ -337,10 +337,10 @@ namespace :db do
end
end
- desc 'Prepare the test database and load the schema'
- task :prepare => %w(environment db:abort_if_pending_migrations) do
+ desc 'Check for pending migrations and load the test schema'
+ task :prepare => 'db:abort_if_pending_migrations' do
if defined?(ActiveRecord) && !ActiveRecord::Base.configurations.blank?
- Rake::Task[{ :sql => "db:test:clone_structure", :ruby => "db:test:clone" }[ActiveRecord::Base.schema_format]].invoke
+ Rake::Task[{ :sql => "db:test:clone_structure", :ruby => "db:schema:load" }[ActiveRecord::Base.schema_format]].invoke
end
end
end