When I try and run rake db:migrate, I get this error: rake aborted! uninitialized constant CreateUsers /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:266:in `load_missing_constant'' /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:453:in `const_missing'' /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ dependencies.rb:465:in `const_missing'' /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ inflector.rb:257:in `constantize'' /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ core_ext/string/inflections.rb:148:in `constantize'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:386:in `migration_class'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:363:in `migration_classes'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ connection_adapters/sqlite_adapter.rb:351:in `inject'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:359:in `each'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:359:in `inject'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:359:in `migration_classes'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:339:in `migrate'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:307:in `up'' /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ migration.rb:298:in `migrate'' /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85 /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke_with_call_chain'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke_with_call_chain'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31 /usr/bin/rake:19:in `load'' /usr/bin/rake:19 I have no idea what is going on. This happened after I renamed a model but I changed all references and names. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Actually I missed one reference...fixed it. But now I''m getting this error: rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:2143:in `raw_load_rakefile'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:in `load_rakefile'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:in `load_rakefile'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in `run'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'' /Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31 /usr/bin/rake:19:in `load'' /usr/bin/rake:19 I''m staring at the Rakefile right now...don''t know what could be causing this. On Nov 10, 8:56 pm, Mike C <snib...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When I try and run rake db:migrate, I get this error: > > rake aborted! > uninitialized constant CreateUsers > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:266:in `load_missing_constant'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:453:in `const_missing'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:465:in `const_missing'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > inflector.rb:257:in `constantize'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > core_ext/string/inflections.rb:148:in `constantize'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:386:in `migration_class'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:363:in `migration_classes'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/sqlite_adapter.rb:351:in `inject'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:359:in `each'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:359:in `inject'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:359:in `migration_classes'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:339:in `migrate'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:307:in `up'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:298:in `migrate'' > /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85 > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > `invoke_with_call_chain'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `synchronize'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `invoke_with_call_chain'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in > `invoke_task'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31 > /usr/bin/rake:19:in `load'' > /usr/bin/rake:19 > > I have no idea what is going on. This happened after I renamed a model > but I changed all references and names.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
*sigh* nevermind again, the issue isn''t solved....still getting the same error. On Nov 10, 8:58 pm, Mike C <snib...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Actually I missed one reference...fixed it. But now I''m getting this > error: > > rake aborted! > No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, > Rakefile.rb) > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:2143:in > `raw_load_rakefile'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1897:in > `load_rakefile'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1896:in > `load_rakefile'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1880:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31 > /usr/bin/rake:19:in `load'' > /usr/bin/rake:19 > > I''m staring at the Rakefile right now...don''t know what could be > causing this. > > On Nov 10, 8:56 pm, Mike C <snib...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > When I try and run rake db:migrate, I get this error: > > > rake aborted! > > uninitialized constant CreateUsers > > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > > dependencies.rb:266:in `load_missing_constant'' > > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > > dependencies.rb:453:in `const_missing'' > > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > > dependencies.rb:465:in `const_missing'' > > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > > inflector.rb:257:in `constantize'' > > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > > core_ext/string/inflections.rb:148:in `constantize'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:386:in `migration_class'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:363:in `migration_classes'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > connection_adapters/sqlite_adapter.rb:351:in `inject'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:359:in `each'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:359:in `inject'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:359:in `migration_classes'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:339:in `migrate'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:307:in `up'' > > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > > migration.rb:298:in `migrate'' > > /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85 > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > > `invoke_with_call_chain'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > > `synchronize'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > > `invoke_with_call_chain'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in > > `invoke_task'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > > `standard_exception_handling'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > > `standard_exception_handling'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'' > > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31 > > /usr/bin/rake:19:in `load'' > > /usr/bin/rake:19 > > > I have no idea what is going on. This happened after I renamed a model > > but I changed all references and names.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mike C wrote:> When I try and run rake db:migrate, I get this error: > > rake aborted! > uninitialized constant CreateUsersIf I had to guess, you had a migration named <datetime>_create_users.rb which created a users table. You edited this migration to rename the table, but you left the name of the migration file the same. The only time I''ve seen this sort of error with migrations comes from having a migration file named differently than the migration class. Hope that helps. Darrik Mazey> /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:266:in `load_missing_constant'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:453:in `const_missing'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > dependencies.rb:465:in `const_missing'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > inflector.rb:257:in `constantize'' > /Library/Ruby/Gems/1.8/gems/activesupport-2.0.2/lib/active_support/ > core_ext/string/inflections.rb:148:in `constantize'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:386:in `migration_class'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:363:in `migration_classes'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > connection_adapters/sqlite_adapter.rb:351:in `inject'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:359:in `each'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:359:in `inject'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:359:in `migration_classes'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:339:in `migrate'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:307:in `up'' > /Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/ > migration.rb:298:in `migrate'' > /Library/Ruby/Gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85 > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in > `invoke_with_call_chain'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `synchronize'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in > `invoke_with_call_chain'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in > `invoke_task'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in > `standard_exception_handling'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'' > /Library/Ruby/Gems/1.8/gems/rake-0.8.1/bin/rake:31 > /usr/bin/rake:19:in `load'' > /usr/bin/rake:19 > > I have no idea what is going on. This happened after I renamed a model > but I changed all references and names. > > >-- Darrik Mazey Developer DMT Programming, LLC. P.O. Box 91 Torrington, CT 06790 office: 330.983.9941 fax: 330.983.9942 mobile: 330.808.2025 darrik-hYmAEBE3lWIoJ/VrfD3uVNBPR1lH4CV8@public.gmane.org To obtain my public key, send an email to darrik-3ZOItiUs85ODFug2jf9dzoDEJ8dgO5X3FNOCUTQkUI4@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nope, I made sure to change the migrations file name too. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- Don't know how to build task 'migrate'
- rake spec:rcov => [BUG] Segmentation fault ruby 1.8.6 (2007-09-24) [i386-mswin32]
- rake aborted! Could not find table ...
- help needed - undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
- Announcement: Foreman 0.1-1 is out