提交 3398f74d 编写于 作者: J Jeremy Kemper

db:test:clone should remove existing tables before reloading the schema. Closes #5607.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4557 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 bffb29fb
*SVN*
* db:test:clone should remove existing tables before reloading the schema. #5607 [sveit@tradeharbor.com]
* Fixed migration generation for class names like ACLController #5197 [brad@madriska.com]
* Added show_source_list and show_call_stack to breakpoints to make it easier to get context #5476 [takiuchi@drecom.co.jp]. Examples:
......
......@@ -66,7 +66,7 @@ namespace :db do
namespace :test do
desc "Recreate the test database from the current environment's database schema"
task :clone => "db:schema:dump" do
task :clone => %w(db:schema:dump db:test:purge) do
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
ActiveRecord::Schema.verbose = false
Rake::Task["db:schema:load"].invoke
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册