Commit be103fc0 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Create migration with new setting

parent b050cbf8
# frozen_string_literal: true
class AddNewSettingToNamespaceSetting < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :namespace_settings, :allow_mfa_for_subgroups, :boolean, default: true, null: false
end
end
def down
with_lock_retries do
remove_column :namespace_settings, :allow_mfa_for_subgroups, :boolean, default: true, null: false
end
end
end
327cd19cd6c0f273aea61ffebf10046fb7229516bc4ed28f3c0290bb3ad04755
\ No newline at end of file
......@@ -13445,7 +13445,8 @@ CREATE TABLE public.namespace_settings (
created_at timestamp with time zone NOT NULL,
updated_at timestamp with time zone NOT NULL,
namespace_id integer NOT NULL,
prevent_forking_outside_group boolean DEFAULT false NOT NULL
prevent_forking_outside_group boolean DEFAULT false NOT NULL,
allow_mfa_for_subgroups boolean DEFAULT true NOT NULL
);
CREATE TABLE public.namespace_statistics (
......
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