search for: tags_questions_us

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

2006 Apr 02
5
adding primary_key to join table using migrations
...now want to add a primary key to this model (because I want to add a "description" column as well so users can describe the tag. I''m not sure how to add this using migrations. Here is what I have: class AddNotesToTags < ActiveRecord::Migration def self.up add_column :tags_questions_users, "id", :primary_key add_column :tags_questions_users, "description", :string, :limit => 80, :null => false end def self.down remove_column :tags_questions_users, "id" remove_column :tags_questions_users, "description" end end...