From a1248f614e04c8a21e01be85329c7c5f8252bf18 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Thu, 31 Jul 2014 12:59:05 -0400 Subject: [PATCH] add more detail to new CourseModesArchive table --- common/djangoapps/course_modes/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/course_modes/models.py b/common/djangoapps/course_modes/models.py index e180b8ed7b..a1da2edec4 100644 --- a/common/djangoapps/course_modes/models.py +++ b/common/djangoapps/course_modes/models.py @@ -132,8 +132,10 @@ class CourseMode(models.Model): class CourseModesArchive(models.Model): """ - Store the CourseModesArchives in this model - + Store the past values of course_mode that a course had in the past. We decided on having + separate model, because there is a uniqueness contraint on (course_mode, course_id) + field pair in CourseModes. Having a separate table allows us to have an audit trail of any changes + such as course price changes """ # the course that this mode is attached to course_id = CourseKeyField(max_length=255, db_index=True)