Skip to content

Commit

Permalink
Remove default from config_scripts payload_valid
Browse files Browse the repository at this point in the history
Only set payload_valid if it was checked otherwise leave it as `nil`
  • Loading branch information
agrare committed Nov 14, 2023
1 parent 7a159b6 commit 36c0807
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 36c0807

Please sign in to comment.