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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
e46dab1a
Commit
e46dab1a
authored
Jan 19, 2012
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add db indexes
parent
744814c5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
db/migrate/20120119202326_add_indexes.rb
db/migrate/20120119202326_add_indexes.rb
+9
-0
db/schema.rb
db/schema.rb
+8
-1
No files found.
db/migrate/20120119202326_add_indexes.rb
0 → 100644
View file @
e46dab1a
class
AddIndexes
<
ActiveRecord
::
Migration
def
change
add_index
:issues
,
:project_id
add_index
:merge_requests
,
:project_id
add_index
:notes
,
:noteable_id
add_index
:notes
,
:noteable_type
end
end
db/schema.rb
View file @
e46dab1a
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended to check this file into your version control system.
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
2012011
0180749
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
2012011
9202326
)
do
create_table
"issues"
,
:force
=>
true
do
|
t
|
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
t
.
string
"title"
...
@@ -26,6 +26,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do
...
@@ -26,6 +26,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do
t
.
string
"branch_name"
t
.
string
"branch_name"
end
end
add_index
"issues"
,
[
"project_id"
],
:name
=>
"index_issues_on_project_id"
create_table
"keys"
,
:force
=>
true
do
|
t
|
create_table
"keys"
,
:force
=>
true
do
|
t
|
t
.
integer
"user_id"
t
.
integer
"user_id"
t
.
datetime
"created_at"
t
.
datetime
"created_at"
...
@@ -48,6 +50,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do
...
@@ -48,6 +50,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do
t
.
datetime
"updated_at"
t
.
datetime
"updated_at"
end
end
add_index
"merge_requests"
,
[
"project_id"
],
:name
=>
"index_merge_requests_on_project_id"
create_table
"notes"
,
:force
=>
true
do
|
t
|
create_table
"notes"
,
:force
=>
true
do
|
t
|
t
.
text
"note"
t
.
text
"note"
t
.
string
"noteable_id"
t
.
string
"noteable_id"
...
@@ -60,6 +64,9 @@ ActiveRecord::Schema.define(:version => 20120110180749) do
...
@@ -60,6 +64,9 @@ ActiveRecord::Schema.define(:version => 20120110180749) do
t
.
string
"line_code"
t
.
string
"line_code"
end
end
add_index
"notes"
,
[
"noteable_id"
],
:name
=>
"index_notes_on_noteable_id"
add_index
"notes"
,
[
"noteable_type"
],
:name
=>
"index_notes_on_noteable_type"
create_table
"projects"
,
:force
=>
true
do
|
t
|
create_table
"projects"
,
:force
=>
true
do
|
t
|
t
.
string
"name"
t
.
string
"name"
t
.
string
"path"
t
.
string
"path"
...
...
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