The foreign keys are specified via your associations -- use the 
:foreign_key option in your has_many, for instance.

To change the primary key, you can use the set_primary_key command 
inside your fields do -- see the bottom of
http://cookbook.hobocentral.net/manual/hobofields/migration_generator

Bryan



Steve VanB wrote:
> I have live legacy tables that I'd like to access with Hobo.
> 
> As such, I'd like to create models around them, but not modify them.
> One thing I need to do in the models, is specify what the the primary
> key and foreign keys are. How do I do this with Hobo models?
> 
> Thanks!
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
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