summaryrefslogtreecommitdiff
path: root/db/migrate/20200613104045_add_compliance_frameworks_to_application_settings.rb
blob: be6f14692e7b911d1ea3c3a2e90dae3cffc7a302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class AddComplianceFrameworksToApplicationSettings < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    with_lock_retries do
      add_column :application_settings, :compliance_frameworks, :integer, limit: 2, array: true, default: [], null: false
    end
  end

  def down
    with_lock_retries do
      remove_column :application_settings, :compliance_frameworks
    end
  end
end