diff --git a/db/migrate/20230224141607_change_assessment_references_verified.rb b/db/migrate/20230224141607_change_assessment_references_verified.rb index 5d92e81db..5a506ac89 100644 --- a/db/migrate/20230224141607_change_assessment_references_verified.rb +++ b/db/migrate/20230224141607_change_assessment_references_verified.rb @@ -2,10 +2,9 @@ class ChangeAssessmentReferencesVerified < ActiveRecord::Migration[7.0] def change - change_column_null :assessments, :references_verified, true - change_column_default :assessments, - :references_verified, - from: false, - to: nil + change_table :assessments, bulk: true do |t| + t.change_null :references_verified, true + t.change_default :references_verified, from: false, to: nil + end end end