search for: risk_id

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

Did you mean: disk_id
2006 Jan 05
3
ActiveRecord setting IDs on auto increment fields
...t;id" field for the join table- This should be an auto_increment and ActiveRecord shouldn''t need to force a value, no? the table looks like this: CREATE TABLE `industries_risks` ( `id` int(10) unsigned NOT NULL auto_increment, `industry_id` int(10) unsigned default NULL, `risk_id` int(10) unsigned default NULL, `created_on` datetime default NULL, `updated_on` datetime default NULL, PRIMARY KEY (`id`) ) TYPE=InnoDB; the code in question is almost directly ripped from this tutorial: http://jrhicks.net/Projects/rails/has_many_and_belongs_to_many.pdf def update ......