Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 8519

Show
Ignore:
Timestamp:
01/02/08 08:28:58 (6 months ago)
Author:
bitsweat
Message:

SQLite: db:drop:all doesn't fail silently if the database is already open. Closes #10577.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/railties/CHANGELOG

    r8488 r8519  
    11*SVN* 
     2 
     3* SQLite: db:drop:all doesn't fail silently if the database is already open.  #10577 [Cheah Chu Yeow, mrichman] 
    24 
    35* Introduce native mongrel handler and push mutex into dispatcher.  [Jeremy Kemper] 
  • trunk/railties/lib/tasks/databases.rake

    r8388 r8519  
    344344    ActiveRecord::Base.connection.drop_database config['database'] 
    345345  when /^sqlite/ 
    346     FileUtils.rm_f(File.join(RAILS_ROOT, config['database'])) 
     346    FileUtils.rm(File.join(RAILS_ROOT, config['database'])) 
    347347  when 'postgresql' 
    348348    `dropdb "#{config['database']}"`