1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Load, not dump, schema to test

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2006-02-27 06:03:50 +00:00
parent 018e7f24f0
commit abe5b1573e

View file

@ -67,7 +67,7 @@ namespace :db do
desc "Recreate the test database from the current environment's database schema" desc "Recreate the test database from the current environment's database schema"
task :clone => "db:schema:dump" do task :clone => "db:schema:dump" do
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test']) ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
Rake::Task["db:schema:dump"].invoke Rake::Task["db:schema:load"].invoke
end end