From d645710f1dcc86e6fb899a56517f1b6e3d17efd5 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Wed, 3 Jul 2024 15:31:50 +0100 Subject: [PATCH] Fix linting issues This fixes linting issues in the latest version of Rubocop. --- ...230224141607_change_assessment_references_verified.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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