Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cec958f0
Commit
cec958f0
authored
Jun 17, 2019
by
yguo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index on invite-email to members
parent
e6059b3d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
0 deletions
+27
-0
changelogs/unreleased/62685-add-index-invite-email-to-members.yml
...gs/unreleased/62685-add-index-invite-email-to-members.yml
+5
-0
db/migrate/20190610142825_add_index_to_members_invite_email.rb
...grate/20190610142825_add_index_to_members_invite_email.rb
+21
-0
db/schema.rb
db/schema.rb
+1
-0
No files found.
changelogs/unreleased/62685-add-index-invite-email-to-members.yml
0 → 100644
View file @
cec958f0
---
title
:
Add index on invite_email for members
merge_request
:
29428
author
:
type
:
performance
db/migrate/20190610142825_add_index_to_members_invite_email.rb
0 → 100644
View file @
cec958f0
# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
AddIndexToMembersInviteEmail
<
ActiveRecord
::
Migration
[
5.1
]
include
Gitlab
::
Database
::
MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
disable_ddl_transaction!
def
up
add_concurrent_index
:members
,
[
:invite_email
]
end
def
down
remove_concurrent_index
:members
,
[
:invite_email
]
end
end
db/schema.rb
View file @
cec958f0
...
@@ -1848,6 +1848,7 @@ ActiveRecord::Schema.define(version: 20190611161641) do
...
@@ -1848,6 +1848,7 @@ ActiveRecord::Schema.define(version: 20190611161641) 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"
,
using: :btree
t
.
index
[
"access_level"
],
name:
"index_members_on_access_level"
,
using: :btree
t
.
index
[
"invite_email"
],
name:
"index_members_on_invite_email"
,
using: :btree
t
.
index
[
"invite_token"
],
name:
"index_members_on_invite_token"
,
unique:
true
,
using: :btree
t
.
index
[
"invite_token"
],
name:
"index_members_on_invite_token"
,
unique:
true
,
using: :btree
t
.
index
[
"requested_at"
],
name:
"index_members_on_requested_at"
,
using: :btree
t
.
index
[
"requested_at"
],
name:
"index_members_on_requested_at"
,
using: :btree
t
.
index
[
"source_id"
,
"source_type"
],
name:
"index_members_on_source_id_and_source_type"
,
using: :btree
t
.
index
[
"source_id"
,
"source_type"
],
name:
"index_members_on_source_id_and_source_type"
,
using: :btree
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment