Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

rake db:drop:all fails w/ sqlite

#822

$ rake db:drop:all (in /home/booch/work/projects/testing) rake aborted! private method drop_database' called for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0xb6edb9d8>

(See full trace by running task with --trace)

$ rake --trace db:drop:all (in /home/booch/work/projects/testing) Invoke db:drop:all (first_time) Invoke environment (first_time) Execute environment Execute db:drop:all rake aborted! private method drop_database' called for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0xb6ee102c> /home/booch/work/projects/testing/vendor/rails/railties/lib/tasks/databases.rake:367:indrop_database' /home/booch/work/projects/testing/vendor/rails/railties/lib/tasks/databases.rake:72 /home/booch/work/projects/testing/vendor/rails/railties/lib/tasks/databases.rake:89:in local_database?' /home/booch/work/projects/testing/vendor/rails/railties/lib/tasks/databases.rake:72 /home/booch/work/projects/testing/vendor/rails/railties/lib/tasks/databases.rake:68:ineach_value' /home/booch/work/projects/testing/vendor/rails/railties/lib/tasks/databases.rake:68 /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:549:in call' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:549:inexecute' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:544:in each' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:544:inexecute' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:511:in invoke_with_call_chain' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:504:insynchronize' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:504:in invoke_with_call_chain' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:497:ininvoke' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1934:in invoke_task' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1912:intop_level' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1912:in each' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1912:intop_level' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1951:in standard_exception_handling' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1906:intop_level' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1884:in run' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1951:instandard_exception_handling' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/lib/rake.rb:1881:in run' /usr/local/lib/site_ruby/1.8/gems/gems/rake-0.8.1/bin/rake:31 /usr/local/bin/rake:19:inload' /usr/local/bin/rake:19

$ ruby ./vendor/rails/railties/bin/rails --version Rails 2.1.0

For some reason, the call to drop_database thinks that config['adapter'] is 'mysql' when it's actually 'sqlite3'. My development and test DBs are sqlite3, while my staging and production databases are mysql, so it might be picking up something from the wrong config section.

Reported by Craig Buchek · August 13th, 2008 @ 07:38 PM

State: wontfix
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. josh
    josh
    • State changed from new to wontfix

    November 22nd, 2008 @ 07:27 PM