Commit 672c54a0 authored by Etienne Baqué's avatar Etienne Baqué

Added user_cap column to namespace_settings

Changelog: added
parent 0aecfcaa
# 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
c66a42fc813846a09d4389a895a2d20ad48889d8ff45ab642e771b6792490623
\ No newline at end of file
......@@ -15103,6 +15103,7 @@ CREATE TABLE namespace_settings (
resource_access_token_creation_allowed boolean DEFAULT true NOT NULL,
lock_delayed_project_removal boolean DEFAULT false NOT NULL,
prevent_sharing_groups_outside_hierarchy boolean DEFAULT false NOT NULL,
new_user_signups_cap integer,
CONSTRAINT check_0ba93c78c7 CHECK ((char_length(default_branch_name) <= 255))
);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment