summaryrefslogtreecommitdiff
path: root/db/migrate/20180907015926_add_legacy_abac_to_cluster_providers_gcp.rb
blob: 933047e32de22f332b54816d2c19cb9fa58da14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class AddLegacyAbacToClusterProvidersGcp < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default(:cluster_providers_gcp, :legacy_abac, :boolean, default: true)
  end

  def down
    remove_column(:cluster_providers_gcp, :legacy_abac)
  end
end