# Error when running migrations

**URL:** <https://www.ruby-forum.com/t/error-when-running-migrations/114453>\
**Category:** Rails\
**Created:** [September 12, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/error-when-running-migrations/114453 "2007-09-12T20:13:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simianstyle](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@simianstyle](https://www.ruby-forum.com/u/simianstyle)\
**Post date:** [September 12, 2007, 8:13pm UTC](https://www.ruby-forum.com/t/error-when-running-migrations/114453/1 "2007-09-12T20:13:25Z")

</div>

I’ve checked out a rails project that i’m working on from a repository,  
and created a new database for it. However whenever i try and run the  
migrations i get the following error:

rake aborted!  
#AppConfig:0xb7870f84 is not a class/module

Whenever I try to fire up a webrick server, i get the following error:

=\> Booting WEBrick…  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems.rb:274:in `activate': #<AppConfig:0xb7342918> is not a class/module (TypeError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in`new\_constants\_in’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active\_support/dependencies.rb:495:in  
`require' from script/../config/../vendor/plugins/validates_captcha/init.rb:11:in`load\_plugin’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:401:in  
`load_plugin' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/reporting.rb:11:in`silence\_warnings’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:401:in  
`load_plugin' ... 18 levels... from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in`gem\_original\_require’  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in  
`require’  
from ./script/server:3

I’m not quite sure as to how to debug this type of thing. I’m running  
ubuntu 7.04, and my ruby version information is as follows: ruby 1.8.6  
(2007-03-13 patchlevel 0) [i686-linux]

According to the other developers on the project, they can check it out  
with the same configuration and run the migration just fine. Also - this  
works perfectly fine on my windows desktop (running migrations and  
starting the server), so that’s pretty weird. Is there something wrong  
with my ruby configuration?

Any help on this problem would be appreciated.
