Skip to content

database transfer

redcozmo edited this page May 28, 2019 · 3 revisions

One DEVISE model :

A student could be a teacher and a teacher could be a student.

--> model USER : both student and teacher

  • Create Devise User table
  • Link User model to GeneralQuestion , GeneralQuestionVote, Course , Attendance, StepQuestion
  • Add data from Teacher table and after these from Student table in User table with seed
  • Modify tables GeneralQuestion , GeneralQuestionVote, Course , Attendance, StepQuestion and link them to User with alias creator and attendee (class_name)
  • Launch migration to add attendee and creator
  • Launch seed for updating tables Course, General Question GeneralQuestionVote, Attendance , StepQuestion
  • Manage all DB calling in whole code
  • Delete relationship between {Student , Teacher} and other tables

Clone this wiki locally