Displaying 1 result from an estimated 1 matches for "fk_models_brand".
2008 Jul 22
2
ActiveRecord Associations issue
...`id` int(11) NOT NULL auto_increment,
`name` varchar(64) NOT NULL default '''',
`brand_id` int(11) NOT NULL default ''0'',
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name_idx` (`nome`),
KEY `FK_MODELS_BRAND` (`brand_id`),
CONSTRAINT `FK_MODELS_BRAND` FOREIGN KEY (`brand_id`) REFERENCES
`brands` (`id`)
);
CREATE TABLE `webcars_development`.`brands` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(16) NOT NULL default '''',
`created_at` datetime default NULL,
`updated_a...