From 36c0807f37ce8ec5be6768de28efbc3f07a9f7b9 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` --- ...e_default_from_configuration_scripts_payload_valid.rb | 9 +++++++++ 1 file changed, 9 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..a8484597 --- /dev/null +++ b/db/migrate/20231114173829_remove_default_from_configuration_scripts_payload_valid.rb @@ -0,0 +1,9 @@ +class RemoveDefaultFromConfigurationScriptsPayloadValid < ActiveRecord::Migration[6.1] + def up + change_column_default :configuration_scripts, :payload_valid, nil + end + + def down + change_column_default :configuration_scripts, :payload_valid, true + end +end