DEV Community

Discussion on: How would you setup a model in Rails to reference the same model type?

Collapse
 
michael profile image
Michael Lee πŸ•

Let's assume no.

Collapse
 
christopherlai profile image
Christopher Lai

I would go with Brian’s solution then. The other solutions work, but I would prefer to have a strong reference, in this case a foreign key stored in the Database.

Thread Thread
 
michael profile image
Michael Lee πŸ•

Yup that's the solution that I ended up going with. Thanks Christopher for the help!