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

Ticket #10577: expose_errors_when_dropping_sqlite.diff

File expose_errors_when_dropping_sqlite.diff, 0.5 kB (added by chuyeow, 10 months ago)
  • railties/lib/tasks/databases.rake

    old new  
    343343  when 'mysql' 
    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']}"` 
    349349  end