Hey guys. Im designing a web app with rails for storing and analysing college students' marks.

Ive come up with a database design like this:
First

Now IM not sure how to set the associations. Can you please help me? And is the design ok?

Recommended Answers

use

 has_many :

and

belongs_to :

in the models

Jump to Post

All 2 Replies

use

 has_many :

and

belongs_to :

in the models

Thanks a lot. Ive done it and Ive come a long way now :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.