[Rails] Re: referential integrity

2009-04-13 Thread AGoofin
Your Team has many members and should be noted: class Team < ActiveRecord::Base has_many :members end This is assuming that you have a column in your member table named team_id. I think this is what you were asking about with the foreign keys. As a somewhat noob to Rails myself I found a fe

[Rails] Re: referential integrity

2009-04-13 Thread Andrew France
On Apr 13, 11:06 pm, doughie wrote: > question 1) should there be foreign key relations in mysql db?  I used > the script/generate model and then rake db:migrate Rails has no native support for foreign key constraints in the DB. I use the RedHillOnRails Core plugin, unfortunately there main site

[Rails] Re: Referential integrity in Rails

2008-10-14 Thread Bill Kocik
On Oct 14, 6:26 pm, Marcos <[EMAIL PROTECTED]> wrote: > However, as I get past the basic tutorials/demos, I have yet to see > good examples of a more complex domain model. Could anyone point me to > some good references/resources please? I'm not sure what level of complexity you're looking for