Ruby on rails – Reference the same model twice?
Here’s a complete answer to this issue, in case people visiting this question are new to Ruby on Rails and having a hard time putting everything together (as I was when I first looked into this). Some parts of the solution take place in your Migrations and some in your Models: Migrations class CreatePrivateMessages < … Read more