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