Commit 8a9bc24e authored by Pawel Chojnacki's avatar Pawel Chojnacki

align schema.rb with upstream and fix rubocop warning about not freezing...

align schema.rb with upstream and fix rubocop warning about not freezing mutable constants and empty error classes
parent 98bd48c6
......@@ -111,10 +111,11 @@ ActiveRecord::Schema.define(version: 20170305203726) do
t.boolean "plantuml_enabled"
t.integer "max_pages_size", default: 100, null: false
t.integer "terminal_max_session_time", default: 0, null: false
t.string "default_artifacts_expire_in", default: "0", null: false
(??) t.string "default_artifacts_expire_in", default: '0', null: false
t.integer "unique_ips_limit_per_user", default: 10, null: false
t.integer "unique_ips_limit_time_window", default: 3600, null: false
t.boolean "unique_ips_limit_enabled", default: false, null: false
t.string "default_artifacts_expire_in", default: "0", null: false
end
create_table "audit_events", force: :cascade do |t|
......@@ -255,8 +256,8 @@ ActiveRecord::Schema.define(version: 20170305203726) do
t.integer "lock_version"
end
add_index "ci_commits", ["gl_project_id", "ref", "status"], name: "index_ci_commits_on_gl_project_id_and_ref_and_status", using: :btree
add_index "ci_commits", ["gl_project_id", "sha"], name: "index_ci_commits_on_gl_project_id_and_sha", using: :btree
add_index "ci_commits", ["gl_project_id", "status"], name: "index_ci_commits_on_gl_project_id_and_status", using: :btree
add_index "ci_commits", ["gl_project_id"], name: "index_ci_commits_on_gl_project_id", using: :btree
add_index "ci_commits", ["status"], name: "index_ci_commits_on_status", using: :btree
add_index "ci_commits", ["user_id"], name: "index_ci_commits_on_user_id", using: :btree
......
module Gitlab
module Auth
class UniqueIpsLimiter
USER_UNIQUE_IPS_PREFIX = 'user_unique_ips'
USER_UNIQUE_IPS_PREFIX = 'user_unique_ips'.freeze
class << self
def limit_user_id!(user_id)
......
module Gitlab
class RequestStoreNotActive < StandardError
end
RequestStoreNotActive = Class.new(StandardError)
class RequestContext
class << self
......
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