Displaying 1 result from an estimated 1 matches for "documents_us".
Did you mean:
document_sums
2007 Feb 25
1
Relationships question (?)
...id, name, content, owner_id). A document can have many
users, because we are implementing a collaboration feature, but only one
owner. The owner will have administrative rights over the document (add
collaborators, delete, etc). Users will only be able to edit the
document.
The thing is, we need a documents_users table to handle the many-to-many
relationship. We do not know how to handle the owner, though, because in
essence the owner is also a user.
Do we need to implement an Owner model? Or can Rails handle two
different types of relationships between a couple of models?
In any case, should we still...