Forum: Ruby on Rails rake db:test:purge , nil.object detected

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C5283f5f6e2659a1b4e7ddb87eca0640?d=identicon&s=25 Pietia (Guest)
on 2009-03-18 21:45
(Received via mailing list)
Hii have problem running rake db:test:purge ( my test database is
empty ) : adter running with trace it shouts :

matthew:rails code pietia$ rake db:test:purge --trace
(in /Users/pietia/Documents/praca/projekty/silk/rails code)
** Invoke db:test:purge (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:purge
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
/Users/pietia/Documents/praca/projekty/silk/rails code/vendor/rails/
railties/lib/tasks/databases.rake:347
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:617:in
`execute'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:612:in
`execute'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:578:in
`invoke_with_call_chain'
/opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:571:in
`invoke_with_call_chain'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:564:in
`invoke'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2027:in
`invoke_task'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`top_level'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in `each'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2005:in
`top_level'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1999:in
`top_level'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1977:in `run'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:2044:in
`standard_exception_handling'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/lib/rake.rb:1974:in `run'
/Users/pietia/.gem/ruby/1.8/gems/rake-0.8.4/bin/rake:31
/opt/local/bin/rake:19:in `load'
/opt/local/bin/rake:19
C5283f5f6e2659a1b4e7ddb87eca0640?d=identicon&s=25 Pietia (Guest)
on 2009-03-18 22:01
(Received via mailing list)
Problem solved , it was problem in my database.yml file
This topic is locked and can not be replied to.