search for: person2_id

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

2006 Jan 04
5
habtm recusive
..., 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: has_and_belongs_to_many :people, { :association_foreign_key=>''person2_id&...