search for: people_peopl

Displaying 1 result from an estimated 1 matches for "people_peopl".

Did you mean: people_people
2006 Jan 04
5
habtm recusive
I have a people table: CREATE TABLE people ( id int(10) unsigned NOT NULL auto_increment, first_name varchar(75) default NULL, middle_name varchar(75) default NULL, last_name varchar(75) default NULL, PRIMARY KEY (id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1272 ; and a people_people table: CREATE TABLE people_people ( person_id int(11) unsigned NOT NULL, person2_id int(11) unsigned NOT NULL, PRIMARY KEY (person_id,person2_id) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; I''m not sure the right way to do this in rails. In my person model, I added the following:...