search for: usage_not

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

Did you mean: usage_notes
2006 Apr 20
5
Using Migrations to convert join table to join model
Greetings, I''m trying to convert a HABTM w/attributes join table in my database into a join model table in order to utilize the new has_many :through functionality introduced in Rails 1.1. Here''s the current table definition: licenses_user_groups: license_id, user_group_id, usage_notes Perhaps it was a mistake, but I made (license_id, user_group_id) the primary key. Now, after playing with has_many :through, I have discovered that, among other modifications, I really need to add an id column to the table and make it the primary key. However, I cannot figure out how to use...