This project is archived and is in readonly mode.

#822 ✓wontfix
Craig Buchek

rake db:drop:all fails w/ sqlite

Reported by Craig Buchek | August 13th, 2008 @ 07:38 PM | in 2.x

$ 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.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages