diff options
Diffstat (limited to 'db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb')
-rw-r--r-- | db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb b/db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb new file mode 100644 index 00000000000..907c832ce46 --- /dev/null +++ b/db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb @@ -0,0 +1,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 |