提交 4019c8c2 编写于 作者: B Bob Van Landuyt

Add `enforce_terms` to `application_settings`

Add a flag to applications settings to enforce users to accept terms
before using the GitLab instance
上级 96373b0b
class AddEnforceTermsToApplicationSettings < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
add_column :application_settings, :enforce_terms, :boolean, default: false
end
end
......@@ -158,6 +158,7 @@ ActiveRecord::Schema.define(version: 20180503150427) do
t.string "auto_devops_domain"
t.boolean "pages_domain_verification_enabled", default: true, null: false
t.boolean "allow_local_requests_from_hooks_and_services", default: false, null: false
t.boolean "enforce_terms", default: false
end
create_table "audit_events", force: :cascade do |t|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册