search for: has_mang_ang_belongs_to

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

2006 Apr 20
2
table that have many-to-may relationship to itself
In a social netowrk data model, users belongs other users, and can have many friends as users, so it is a many to many relatioship. the class definition could be class User < ApplicationController has_mang_ang_belongs_to users But how it looks like in the mysql database tables in a "joined" users table. The question really is: what is the table looks like when a model has many and belongs itself. thx -- Posted via http://www.ruby-forum.com/.