debian-mirror-gitlab/db/migrate/20191217212348_add_modsecurity_enabled_to_ingress_application.rb
2020-03-13 15:44:24 +05:30

17 lines
449 B
Ruby

# 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