Commit d7bfbaf3 authored by Tiago Botelho's avatar Tiago Botelho

add mirror specific settings to application settings

parent 5527b8b5
class AddMirrorSettingsToApplicationSetting < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column_with_default :application_settings,
:mirror_max_delay,
:integer,
default: 5,
allow_null: false
add_column_with_default :application_settings,
:mirror_max_capacity,
:integer,
default: 100,
allow_null: false
add_column_with_default :application_settings,
:mirror_capacity_threshold,
:integer,
default: 50,
allow_null: false
ApplicationSetting.expire
end
def down
remove_column :application_settings, :mirror_max_delay
remove_column :application_settings, :mirror_max_capacity
remove_column :application_settings, :mirror_capacity_threshold
end
end
......@@ -137,6 +137,9 @@ ActiveRecord::Schema.define(version: 20170602003304) do
t.boolean "clientside_sentry_enabled", default: false, null: false
t.string "clientside_sentry_dsn"
t.boolean "check_namespace_plan", default: false, null: false
t.integer "mirror_max_delay", default: 5, null: false
t.integer "mirror_max_capacity", default: 100, null: false
t.integer "mirror_capacity_threshold", default: 50, null: 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