From 5b06f6c28cb75388e804a94b674054f154277869 Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Tue, 14 Nov 2023 12:39:35 -0500 Subject: [PATCH] Remove default from config_scripts payload_valid Only set payload_valid if it was checked otherwise leave it as `nil` --- ...emove_default_from_configuration_scripts_payload_valid.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20231114173829_remove_default_from_configuration_scripts_payload_valid.rb diff --git a/db/migrate/20231114173829_remove_default_from_configuration_scripts_payload_valid.rb b/db/migrate/20231114173829_remove_default_from_configuration_scripts_payload_valid.rb new file mode 100644 index 00000000..36554498 --- /dev/null +++ b/db/migrate/20231114173829_remove_default_from_configuration_scripts_payload_valid.rb @@ -0,0 +1,5 @@ +class RemoveDefaultFromConfigurationScriptsPayloadValid < ActiveRecord::Migration[6.1] + def change + change_column_default :configuration_scripts, :payload_valid, nil + end +end