backfill for DefaultLimitPrivilegesToCourseSection

refs CORE-292

test plan 
 - specs should pass

Change-Id: I70902e30b03c5de7bf36e41b6d891aecaca42c82
Reviewed-on: https://gerrit.instructure.com/143091
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins
Product-Review: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
Rob Orton 2018-03-08 19:50:48 -07:00
parent 9d16880648
commit db1cbe95ca
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ class DefaultLimitPrivilegesToCourseSection < ActiveRecord::Migration[5.0]
def up
change_column_default(:enrollments, :limit_privileges_to_course_section, false)
DataFixup::BackfillNulls.run(Enrollment, [:limit_privileges_to_course_section])
change_column_null(:enrollments, :limit_privileges_to_course_section, false)
end