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
0d598340
Commit
0d598340
authored
Oct 19, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary indexes
parent
95a7c020
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
db/migrate/20170926203418_create_board_labels.rb
db/migrate/20170926203418_create_board_labels.rb
+2
-2
db/migrate/20171010095526_create_board_assignees.rb
db/migrate/20171010095526_create_board_assignees.rb
+2
-2
db/schema.rb
db/schema.rb
+0
-4
No files found.
db/migrate/20170926203418_create_board_labels.rb
View file @
0d598340
...
...
@@ -5,8 +5,8 @@ class CreateBoardLabels < ActiveRecord::Migration
def
change
create_table
:board_labels
do
|
t
|
t
.
references
:board
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:label
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:board
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
references
:label
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
index
[
:board_id
,
:label_id
],
unique:
true
end
end
...
...
db/migrate/20171010095526_create_board_assignees.rb
View file @
0d598340
...
...
@@ -5,8 +5,8 @@ class CreateBoardAssignees < ActiveRecord::Migration
def
change
create_table
:board_assignees
do
|
t
|
t
.
references
:board
,
index:
true
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
integer
:assignee_id
,
null:
false
,
index:
true
t
.
references
:board
,
foreign_key:
{
on_delete: :cascade
},
null:
false
t
.
integer
:assignee_id
,
null:
false
t
.
foreign_key
:users
,
column: :assignee_id
,
on_delete: :cascade
t
.
index
[
:board_id
,
:assignee_id
],
unique:
true
end
...
...
db/schema.rb
View file @
0d598340
...
...
@@ -219,9 +219,7 @@ ActiveRecord::Schema.define(version: 20171010140746) do
t
.
integer
"assignee_id"
,
null:
false
end
add_index
"board_assignees"
,
[
"assignee_id"
],
name:
"index_board_assignees_on_assignee_id"
,
using: :btree
add_index
"board_assignees"
,
[
"board_id"
,
"assignee_id"
],
name:
"index_board_assignees_on_board_id_and_assignee_id"
,
unique:
true
,
using: :btree
add_index
"board_assignees"
,
[
"board_id"
],
name:
"index_board_assignees_on_board_id"
,
using: :btree
create_table
"board_labels"
,
force: :cascade
do
|
t
|
t
.
integer
"board_id"
,
null:
false
...
...
@@ -229,8 +227,6 @@ ActiveRecord::Schema.define(version: 20171010140746) do
end
add_index
"board_labels"
,
[
"board_id"
,
"label_id"
],
name:
"index_board_labels_on_board_id_and_label_id"
,
unique:
true
,
using: :btree
add_index
"board_labels"
,
[
"board_id"
],
name:
"index_board_labels_on_board_id"
,
using: :btree
add_index
"board_labels"
,
[
"label_id"
],
name:
"index_board_labels_on_label_id"
,
using: :btree
create_table
"boards"
,
force: :cascade
do
|
t
|
t
.
integer
"project_id"
...
...
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