Hey Bryan,

I tried adding the line to my config\environment.rb file, but get and
error when trying to run the hobo migration:

/rails3/config/environment.rb:11: uninitialized constant
HoboFields::MigrationGenerator (NameError)
        from /home/atmorell/www/rails3/rails/ruby/1.8/gems/railties-3.0.1/lib/
rails/application.rb:103:in `require_environment!'
        from /home/atmorell/www/rails3/rails/ruby/1.8/gems/railties-3.0.1/lib/
rails/commands.rb:16
        from script/rails:6:in `require'
        from script/rails:6

Does this work with Rails3?

On 11 Nov., 16:49, Bryan Larsen <[email protected]> wrote:
> You can add HoboFields::MigrationGenerator.ignore_models = [Kp2User] to
> your environment.rb
>
> On 10-11-11 05:31 AM, atmorell wrote:
>
> > Hello,
>
> > I have a dummy model that connects to an old database. How do I tell
> > hobo_fields to ignore/skip this model? It wants to create an User
> > table even though the fields block has not been added to the model.
>
> > I am only using the hobo_fields plugin - rest of hobo is not loaded.
>
> > class Kp2User<  ActiveRecord::Base
> >    set_primary_key "user_id"
> >    set_table_name 'users'
> >    establish_connection :kunstpladsen2_production
> >    has_many :kp2paintings, :foreign_key =>  "user_id", :class_name =>
> > "Painting"
> > end
>
> > Best regards.
> > Asbj rn Morell

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to