Permalink
Browse files

SQLite: db:drop:all doesn't fail silently if the database is already …

…open. Closes #10577.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 42622f2 commit 072b9d9fba2f1268a3b66de32eb6033124960f92 @jeremy jeremy committed Jan 2, 2008
Showing with 3 additions and 1 deletion.
  1. +2 −0 railties/CHANGELOG
  2. +1 −1 railties/lib/tasks/databases.rake
View
@@ -1,5 +1,7 @@
*SVN*
+* SQLite: db:drop:all doesn't fail silently if the database is already open. #10577 [Cheah Chu Yeow, mrichman]
+
* Introduce native mongrel handler and push mutex into dispatcher. [Jeremy Kemper]
* Ruby 1.9 compatibility. #1689, #10546 [Cheah Chu Yeow, frederico]
@@ -343,7 +343,7 @@ def drop_database(config)
when 'mysql'
ActiveRecord::Base.connection.drop_database config['database']
when /^sqlite/
- FileUtils.rm_f(File.join(RAILS_ROOT, config['database']))
+ FileUtils.rm(File.join(RAILS_ROOT, config['database']))
when 'postgresql'
`dropdb "#{config['database']}"`
end

0 comments on commit 072b9d9

Please sign in to comment.