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