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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
b4ed272d
Commit
b4ed272d
authored
Jun 15, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index on `requested_at` to the `members` table
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
8bfbafbb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
db/migrate/20160615142710_add_index_on_requested_at_to_members.rb
...te/20160615142710_add_index_on_requested_at_to_members.rb
+9
-0
db/schema.rb
db/schema.rb
+2
-1
No files found.
db/migrate/20160615142710_add_index_on_requested_at_to_members.rb
0 → 100644
View file @
b4ed272d
class
AddIndexOnRequestedAtToMembers
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
disable_ddl_transaction!
def
change
add_concurrent_index
:members
,
:requested_at
end
end
db/schema.rb
View file @
b4ed272d
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2016061
0301627
)
do
ActiveRecord
::
Schema
.
define
(
version:
2016061
5142710
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
@@ -572,6 +572,7 @@ ActiveRecord::Schema.define(version: 20160610301627) do
add_index
"members"
,
[
"access_level"
],
name:
"index_members_on_access_level"
,
using: :btree
add_index
"members"
,
[
"created_at"
,
"id"
],
name:
"index_members_on_created_at_and_id"
,
using: :btree
add_index
"members"
,
[
"invite_token"
],
name:
"index_members_on_invite_token"
,
unique:
true
,
using: :btree
add_index
"members"
,
[
"requested_at"
],
name:
"index_members_on_requested_at"
,
using: :btree
add_index
"members"
,
[
"source_id"
,
"source_type"
],
name:
"index_members_on_source_id_and_source_type"
,
using: :btree
add_index
"members"
,
[
"type"
],
name:
"index_members_on_type"
,
using: :btree
add_index
"members"
,
[
"user_id"
],
name:
"index_members_on_user_id"
,
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