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
Boxiang Sun
gitlab-ce
Commits
8dec24a3
Commit
8dec24a3
authored
Dec 03, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Event indices related to #2159
parent
05820516
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
db/migrate/20121203154450_add_events_indices.rb
db/migrate/20121203154450_add_events_indices.rb
+8
-0
db/schema.rb
db/schema.rb
+6
-1
No files found.
db/migrate/20121203154450_add_events_indices.rb
0 → 100644
View file @
8dec24a3
class
AddEventsIndices
<
ActiveRecord
::
Migration
def
change
add_index
:events
,
:project_id
add_index
:events
,
:author_id
add_index
:events
,
:action
add_index
:events
,
:target_type
end
end
db/schema.rb
View file @
8dec24a3
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
:version
=>
20121
12316491
0
)
do
ActiveRecord
::
Schema
.
define
(
:version
=>
20121
20315445
0
)
do
create_table
"events"
,
:force
=>
true
do
|
t
|
t
.
string
"target_type"
...
...
@@ -25,6 +25,11 @@ ActiveRecord::Schema.define(:version => 20121123164910) do
t
.
integer
"author_id"
end
add_index
"events"
,
[
"action"
],
:name
=>
"index_events_on_action"
add_index
"events"
,
[
"author_id"
],
:name
=>
"index_events_on_author_id"
add_index
"events"
,
[
"project_id"
],
:name
=>
"index_events_on_project_id"
add_index
"events"
,
[
"target_type"
],
:name
=>
"index_events_on_target_type"
create_table
"issues"
,
:force
=>
true
do
|
t
|
t
.
string
"title"
t
.
integer
"assignee_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