public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Don't dump schema for every test run, just when migrations are run
jeremy (author)
Mon Jun 16 03:47:15 -0700 2008
commit  b6d0eba5790552f4c9ef6a1abe0befd8be454ada
tree    2af8657b17970feacc79602f5b921367dd70fe93
parent  4c6eed0537904c728dca84dd464061de453bf78d
...
337
338
339
340
341
 
 
342
343
 
344
345
346
...
337
338
339
 
 
340
341
342
 
343
344
345
346
0
@@ -337,10 +337,10 @@ namespace :db do
0
       end
0
     end
0
 
0
-    desc 'Prepare the test database and load the schema'
0
-    task :prepare => %w(environment db:abort_if_pending_migrations) do
0
+    desc 'Check for pending migrations and load the test schema'
0
+    task :prepare => 'db:abort_if_pending_migrations' do
0
       if defined?(ActiveRecord) && !ActiveRecord::Base.configurations.blank?
0
-        Rake::Task[{ :sql  => "db:test:clone_structure", :ruby => "db:test:clone" }[ActiveRecord::Base.schema_format]].invoke
0
+        Rake::Task[{ :sql  => "db:test:clone_structure", :ruby => "db:schema:load" }[ActiveRecord::Base.schema_format]].invoke
0
       end
0
     end
0
   end

Comments