Commit 4019c8c2 authored by Bob Van Landuyt's avatar Bob Van Landuyt 🔴
Browse files

Add `enforce_terms` to `application_settings`

Add a flag to applications settings to enforce users to accept terms
before using the GitLab instance
parent 96373b0b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
class AddEnforceTermsToApplicationSettings < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  def change
    add_column :application_settings, :enforce_terms, :boolean, default: false
  end
end
+1 −0
Original line number Diff line number Diff line
@@ -158,6 +158,7 @@
    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|