Displaying 1 result from an estimated 1 matches for "fk_users_com".
2006 Mar 19
1
some strange behavior for has_many with STI
...ault NULL,
`type` varchar(20) NOT NULL default '''',
`type_id` int(11) NOT NULL default ''0'',
`name` varchar(255) default NULL,
`comment` text NOT NULL,
`created_at` datetime default NULL,
`updated_at` datetime default NULL,
PRIMARY KEY (`id`),
KEY `FK_users_comments` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `comments`
ADD FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
on top of which, I''ve got two tables: events and activities, both of
which can have comments. Here are the model associations for Events,
Activities...