mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
bffb29fb7d
commit
3398f74db1
2 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
*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
|
||||
|
|
Loading…
Reference in a new issue