diff options
Diffstat (limited to 'db/migrate/20200820130839_add_auto_close_incident_to_project_incident_management_settings.rb')
-rw-r--r-- | db/migrate/20200820130839_add_auto_close_incident_to_project_incident_management_settings.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/db/migrate/20200820130839_add_auto_close_incident_to_project_incident_management_settings.rb b/db/migrate/20200820130839_add_auto_close_incident_to_project_incident_management_settings.rb new file mode 100644 index 00000000000..01aafa6d988 --- /dev/null +++ b/db/migrate/20200820130839_add_auto_close_incident_to_project_incident_management_settings.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +class AddAutoCloseIncidentToProjectIncidentManagementSettings < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def up + add_column :project_incident_management_settings, :auto_close_incident, :boolean, default: true, null: false + end + + def down + remove_column :project_incident_management_settings, :auto_close_incident + end +end |