Commit 19289323 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'sh-add-index-members-expires' into 'master'

Fix member expiration not always working

Closes #67286

See merge request gitlab-org/gitlab-ce!32951
parents 44dd3d2d c13c7e67
---
title: Fix member expiration not always working
merge_request: 32951
author:
type: performance
# frozen_string_literal: true
class AddIndexToMembersOnExpiresAt < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :members, :expires_at
end
def down
remove_concurrent_index :members, :expires_at
end
end
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_09_10_000130) do ActiveRecord::Schema.define(version: 2019_09_12_061145) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "pg_trgm" enable_extension "pg_trgm"
...@@ -1997,6 +1997,7 @@ ActiveRecord::Schema.define(version: 2019_09_10_000130) do ...@@ -1997,6 +1997,7 @@ ActiveRecord::Schema.define(version: 2019_09_10_000130) do
t.boolean "ldap", default: false, null: false t.boolean "ldap", default: false, null: false
t.boolean "override", default: false, null: false t.boolean "override", default: false, null: false
t.index ["access_level"], name: "index_members_on_access_level" t.index ["access_level"], name: "index_members_on_access_level"
t.index ["expires_at"], name: "index_members_on_expires_at"
t.index ["invite_email"], name: "index_members_on_invite_email" t.index ["invite_email"], name: "index_members_on_invite_email"
t.index ["invite_token"], name: "index_members_on_invite_token", unique: true t.index ["invite_token"], name: "index_members_on_invite_token", unique: true
t.index ["requested_at"], name: "index_members_on_requested_at" t.index ["requested_at"], name: "index_members_on_requested_at"
......
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