From db1cbe95ca7b35d26ea22da8bd760d65355ae817 Mon Sep 17 00:00:00 2001 From: Rob Orton Date: Thu, 8 Mar 2018 19:50:48 -0700 Subject: [PATCH] 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 Tested-by: Jenkins Product-Review: Rob Orton QA-Review: Rob Orton --- .../20180201212937_default_limit_privileges_to_course_section.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrate/20180201212937_default_limit_privileges_to_course_section.rb b/db/migrate/20180201212937_default_limit_privileges_to_course_section.rb index 124ec3da264..017536e8569 100644 --- a/db/migrate/20180201212937_default_limit_privileges_to_course_section.rb +++ b/db/migrate/20180201212937_default_limit_privileges_to_course_section.rb @@ -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