Commit b6dc4018 authored by Lucas Charles's avatar Lucas Charles Committed by Mayra Cabrera

Add modsecurity_enabled to ingress applications

Adds new column to track user setting determining whether to
install modsecurity along with ingress managed application

See https://gitlab.com/gitlab-org/gitlab/issues/39140 for more details
parent 629c9dd8
---
title: Add modsecurity_enabled setting to managed ingress
merge_request: 21968
author:
type: added
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class AddModsecurityEnabledToIngressApplication < ActiveRecord::Migration[5.2]
DOWNTIME = false
def up
add_column :clusters_applications_ingress, :modsecurity_enabled, :boolean
end
def down
remove_column :clusters_applications_ingress, :modsecurity_enabled
end
end
......@@ -1163,6 +1163,7 @@ ActiveRecord::Schema.define(version: 2019_12_18_225624) do
t.text "status_reason"
t.string "external_ip"
t.string "external_hostname"
t.boolean "modsecurity_enabled"
t.index ["cluster_id"], name: "index_clusters_applications_ingress_on_cluster_id", unique: true
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment