Try re-running the migration with the --trace option. It will dump a
strack trace along with the error message showing you (or us if you
post the output here) exactly where the migration is choking.
-John
On Jul 10, 10:31 am, rlaferla
<robertlafe...-Wuw85uim5zDR7s880joybQ@public.gmane.org>
wrote:> Why is this error happening? I am using Rails 1.2.3.
>
> ./script/generate model MyNewModel
> exists app/models/
> exists test/unit/
> exists test/fixtures/
> create app/models/my_new_model.rb
> create test/unit/my_new_model_test.rb
> create test/fixtures/my_new_models.yml
> exists db/migrate
> create db/migrate/010_my_new_models.rb
> % rake db:migrate
> (in /tmp)
> rake aborted!
> uninitialized constant MyNewModel
>
> (See full trace by running task with --trace)
>
> % rails --version
> Rails 1.2.3
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---