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
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
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
3 matches
Mail list logo