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

class AddNewUserSignupsCapToNamespaceSettings < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  def up
    with_lock_retries do
      add_column :namespace_settings, :new_user_signups_cap, :integer, null: true
    end
  end

  def down
    with_lock_retries do
      remove_column :namespace_settings, :new_user_signups_cap
    end
  end
end