I'm trying to make two one to one relationships in the same class in rails.
I added two columns to my class called link
post_id1 post_id2
So now I want to be able to get a link object, and do
link.post1
link.post2
But I'm getting confused about how to specify this
I assume it's something to do with
has_one :Post, => specify name so the references don't clash
I assume this is really easy, I'm just new to rails.