summaryrefslogtreecommitdiff
path: root/db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb
blob: 907c832ce4681b4bfbadff101959b526a81dc3e9 (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 AddMaxPersonalAccessTokenLifetimeToNamespaces < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def up
    with_lock_retries do
      add_column :namespaces, :max_personal_access_token_lifetime, :integer
    end
  end

  def down
    with_lock_retries do
      remove_column :namespaces, :max_personal_access_token_lifetime
    end
  end
end