canvas-lms/app
Cameron Matheson d315baa896 keep root_account_id in sync between course/enrollments
fixes #6142

test plan: Create a course and enroll some students.  Move the course to
  another root account.  The following SQL query should return 0:

    SELECT COUNT(e.id) FROM enrollments e
    INNER JOIN courses c ON e.course_id = c.id
    WHERE e.root_account_id != c.root_account_id

  To test the migration, mess up some of the enrollment
  root_account_ids:

    UPDATE enrollments SET root_account_id = 99

  Before migrating, the SELECT COUNT snippet above should return
  false, after migrating, it should return true.

Change-Id: I9b18dded8a763a8a05f5e631907f77b4e9a1bd49
Reviewed-on: https://gerrit.instructure.com/7081
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
2011-11-28 14:29:58 -07:00
..
coffeescripts default 'group_conversations' off; fixes #6069 2011-11-15 12:55:35 -07:00
controllers only show courses and groups in conversation dropdown 2011-11-28 14:28:53 -07:00
helpers external tool resource selector in WYSIWYG editor 2011-11-22 16:12:12 -07:00
messages remove the new wiki page notification 2011-11-08 12:46:05 -07:00
middleware sis import api 2011-04-08 15:45:57 -06:00
models keep root_account_id in sync between course/enrollments 2011-11-28 14:29:58 -07:00
observers avatar image caching and invalidation, closes #5210 2011-11-16 10:29:42 -07:00
stylesheets fix popdown menu in webkit (fixes #5765) 2011-11-28 14:29:19 -07:00
views default "search only existing users" to the behavior non-admins would get 2011-11-28 14:27:50 -07:00