Tag Archives: one to one relations

One to one relation in rails

Refer above figure books and cover_images tables assumes that same image is never used on two different covers. there is always a one-to-one relationship between books and cover images. For this rails requires  a foreign key.Foreign key goes to the … Continue reading

Posted in rails, ROR, ruby on rails, web development | Tagged , , , | Leave a comment