Welcome to the Treehouse Community
Looking to learn something new?
Why do statuses belong to documents?
Shouldn't documents belong_to :statuses ?
How can a user's status belong to a file?
Maciej Czuchnowski36,440 Points
I know it sounds weird, this would make me raise an eyebrow a few months month ago, but after watching one of GoRails videos I know that the only thing belongs_to does is it gives you a setter and getter for this attribute, so you can check and apply things more easily (in this case it's status.document and status.document=). Check out from minute 12:55: https://gorails.com/episodes/soft-delete-with-paranoia
At least that's how I understand the reason behind belongs_to in this case.