Open sanandnarayan opened 9 years ago
@Kameshwaran Can you please add some association specs?
I'm doing it. will push the code.
Address the comments, please.
UserCourse -> associates the Course taker and the course.
How are the Course maker and the course associated. Shouldn't there be a user_id
on courses
?
course belongs_to :user, :as => :author
Furthermore if you check this wireframe. You may notice a link stating the rediness of a course taker to take a test. This should trigger an email to the course maker.
Each course taker should have a course_status
. This course status should indicate whether,
We can listen to changes in this course_status
on user_course
, and trigger emails or other events accordingly.
What say @Kameshwaran?
Why is the status
field on test_reports
a string field?
Won't it be better to have a constant table called test_report_statuses
listing all possible statuses and linked to test_resports
through a test_reports_status_id
?
Ennanga @Kameshwaran correct ah?
@nithinkrishna There are only two possible values for status(pass/fail). Why do we need to create a seperate table for this? And i didn't connect the course maker with the course. I can do that.
Vaild point. But, What if we decide to have multiple statuses for a test. Change from the pass / fail system to objective scoring? That's why I suggested a seperate table.
@nithinkrishna Cool man. we need this app to as simple as possible with the necessary functionality. that's why i did like that.
@nithinkrishna checkout the dev branch dude :)
Track updates to this issue here.
Kamesh, please create the necessary models and push it here