Displaying 1 result from an estimated 1 matches for "read_global_messag".
Did you mean:
read_global_messages
2006 Apr 06
1
Primary keys and migrations
I have a join table I''m creating with a migration as follows:
create_table :read_global_messages, :id=>false do |t|
t.column :user_id, :integer
t.column :message_id, :integer
end
So far so good, however I want the primary key to be user_id and
message_id. How do I do this?
I tried the following, but that doesn''t work:
add_index :read_global_messages, [...