From a3ab9fcd756849a241609ef4a6c197a82a7f90c4 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Thu, 2 May 2024 09:29:41 -0500 Subject: [PATCH] Add some not-null constraints for booleans --- ...0502142444_add_not_null_constraints_to_booleans.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20240502142444_add_not_null_constraints_to_booleans.rb diff --git a/db/migrate/20240502142444_add_not_null_constraints_to_booleans.rb b/db/migrate/20240502142444_add_not_null_constraints_to_booleans.rb new file mode 100644 index 000000000..6e70b84bd --- /dev/null +++ b/db/migrate/20240502142444_add_not_null_constraints_to_booleans.rb @@ -0,0 +1,11 @@ +class AddNotNullConstraintsToBooleans < ActiveRecord::Migration[7.0] + def change + change_column_null :collections, :email_when_participants_changed, false + change_column_null :collections, :email_depositors_status_changed, false + change_column_null :collections, :review_enabled, false + + change_column_null :page_contents, :visible, false + change_column_null :page_contents, :link_visible, false + + end +end