Add repository_checks_enabled setting
This commit is contained in:
parent
318314154e
commit
b37d3b9423
|
@ -153,7 +153,8 @@ class ApplicationSetting < ActiveRecord::Base
|
|||
require_two_factor_authentication: false,
|
||||
two_factor_grace_period: 48,
|
||||
recaptcha_enabled: false,
|
||||
akismet_enabled: false
|
||||
akismet_enabled: false,
|
||||
repository_checks_enabled: true,
|
||||
)
|
||||
end
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class AddRepositoryChecksEnabledSetting < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :application_settings, :repository_checks_enabled, :boolean, default: true
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160331133914) do
|
||||
ActiveRecord::Schema.define(version: 20160412140240) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -78,6 +78,7 @@ ActiveRecord::Schema.define(version: 20160331133914) do
|
|||
t.string "akismet_api_key"
|
||||
t.boolean "email_author_in_body", default: false
|
||||
t.integer "default_group_visibility"
|
||||
t.boolean "repository_checks_enabled", default: true
|
||||
end
|
||||
|
||||
create_table "audit_events", force: :cascade do |t|
|
||||
|
|
Loading…
Reference in New Issue