Add Instructor Model
In future versions of the project, users should be able to search by professor and see what classes each professor has taught in previous years.
The following must be done:
- Add a model named
Instructorwith appropriate fields.
- Change the
instructorfield in the
Sectionmodel from a string to a foreign key referencing a Professor.
db/seeds.rbto add professors when loading data and to point sections to these professors
See the following files:
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information