Commit a7ea6767 authored by manojmj's avatar manojmj

Add `require_admin_approval_after_user_signup ` column

This change adds
`require_admin_approval_after_user_signup `  column
to `application_settings` table
parent 3df1baec
---
title: Add a database column to enable or disable the setting that puts newly registered
users in a pending state, requiring admin approval for their activation
merge_request: 43661
author:
type: added
# frozen_string_literal: true
class AddRequireAdminApprovalAfterUserSignupToApplicationSettings < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
add_column :application_settings, :require_admin_approval_after_user_signup, :boolean, default: false, null: false
end
end
9ef08404b964ccae3e12332340f16c6b8bb2bbdb2c04ba105fe1c0c7e6bf84f2
\ No newline at end of file
......@@ -9270,6 +9270,7 @@ CREATE TABLE application_settings (
gitpod_enabled boolean DEFAULT false NOT NULL,
gitpod_url text DEFAULT 'https://gitpod.io/'::text,
abuse_notification_email character varying,
require_admin_approval_after_user_signup boolean DEFAULT false NOT NULL,
CONSTRAINT check_2dba05b802 CHECK ((char_length(gitpod_url) <= 255)),
CONSTRAINT check_51700b31b5 CHECK ((char_length(default_branch_name) <= 255)),
CONSTRAINT check_9c6c447a13 CHECK ((char_length(maintenance_mode_message) <= 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