canvas-lms/db
Simon Williams 72be6ba687 fix immediate migration notifications
fixes #8460
refs #8318

we already fixed course migration notifications to send immediately, but we
missed content export notifications. also, the previous fix would only work for
users who didn't already have a NotificationPolicy for the migration emails.
this fix also removes those NotificationPolicy objects for existing users.

test-plan:
- make sure you already have a non-immediate notification policy for the
  'Other Administrative Alerts' category. you can do this simply by going
  to the notifications page and hitting save.
- to to courses/:id/content_exports, and perform a course export
- you should get an email when it completes
- perform a course copy
- you should not get any migration/export related emails.

Change-Id: Ie0aaeee1d8d2be4ad30fecf552973fc49e25ee28
Reviewed-on: https://gerrit.instructure.com/10652
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2012-05-11 13:59:26 -06:00
..
migrate fix immediate migration notifications 2012-05-11 13:59:26 -06:00