Commit da66becf authored by Bob Van Landuyt's avatar 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
parent d5b77d24
class AddEnforceTermsToApplicationSettings < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
add_column :application_settings, :enforce_terms, :boolean, default: false
end
end
......@@ -198,6 +198,7 @@ ActiveRecord::Schema.define(version: 20180502125859) do
t.string "encrypted_external_auth_client_key_pass"
t.string "encrypted_external_auth_client_key_pass_iv"
t.string "email_additional_text"
t.boolean "enforce_terms", default: false
end
create_table "approvals", force: :cascade do |t|
......
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