RamseyNjire / courses_students_enrollments

Playing with Active Record. This project is to help me master many-to-many relationships in Rails.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Associations!

We have courses, users, and enrollments.

A course can have many enrolled students, and a student can be enrolled to many courses. The bridging model (and db table) is Enrollment. A course can also have prerequisites, which are other courses that you need to take first. And it has an instructor. Using the above 3 models, we should be able to create all these associations. Should be fun! Don't forget to setup and seed the database to play with it!

About

Playing with Active Record. This project is to help me master many-to-many relationships in Rails.


Languages

Language:Ruby 79.8%Language:HTML 15.2%Language:JavaScript 3.1%Language:CSS 1.9%