Displaying 1 result from an estimated 1 matches for "pet_id".
Did you mean:
get_id
2006 Jan 10
5
Noob ActiveRecord Join Question
...called Pets, and a table called Types.
Pets contains a list of pets, Parky the cat, Daisy the dog, etc, And
Types contains a list of different pet types, dog - cat - fish - bird -
etc.
Pets table
CREATE TABLE `pets` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(20) default NULL,
`pet_id` int(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
Types table
CREATE TABLE `types` (
`id` int(11) NOT NULL auto_increment,
`pettype` varchar(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
What I want to do is to associate the...