Displaying 2 results from an estimated 2 matches for "orange_id".
Did you mean:
range_id
2005 Dec 17
4
Rake migrate and creating join tables
...ther).
I made the changes manually in MySQL, then did rake db_schema_dump and
it gave something like this:
create_table "apples_oranges", :id => false, :force => true do |t|
t.column "apple_id", :integer, :limit => 10, :null => false
t.column "orange_id", :integer, :limit => 10, :default => 0, :null
=> false
end
The problem is that when you run this code, there''s no primary key
generated on the table. I''ve looked through the source code, and noticed
that the code doesn''t even attempt to create a pri...
2006 Apr 18
1
N:M:K Relationships
Hello there,
I was wondering whether rails 1.1.1 supports N:M:K relationships that is
having a pivot table with three columns which are primary keys:
say, (apple_id, orange_id, lemon_id)
It would be so great if Rails could be able to have id-s which as
n-tuples.
Thanks,
Roland
--
Posted via http://www.ruby-forum.com/.