search for: fk_cars_model

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

Did you mean: fk_cars_models
2008 Jul 22
2
ActiveRecord Associations issue
...ll tables have only one record) CREATE TABLE `webcars_development`.`cars` ( `id` int(11) NOT NULL auto_increment, `model_id` int(11) NOT NULL default ''0'', `photo` blob, `created_at` datetime default NULL, `updated_at` datetime default NULL, PRIMARY KEY (`id`), KEY `FK_CARS_MODELS` (`model_id`), CONSTRAINT `FK_CARS_MODELS` FOREIGN KEY (`model_id`) REFERENCES `models` (`id`) ); CREATE TABLE `webcars_development`.`models` ( `id` int(11) NOT NULL auto_increment, `name` varchar(64) NOT NULL default '''', `brand_id` int(11) NOT NULL default ''0&...