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
93bc67ab
Commit
93bc67ab
authored
Mar 04, 2014
by
gussan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add index_merge_request_diffs_on_merge_request_id
parent
d0e73eec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
db/migrate/20140304005354_add_index_merge_request_diffs_on_merge_request_id.rb
...5354_add_index_merge_request_diffs_on_merge_request_id.rb
+5
-0
db/schema.rb
db/schema.rb
+3
-1
No files found.
db/migrate/20140304005354_add_index_merge_request_diffs_on_merge_request_id.rb
0 → 100644
View file @
93bc67ab
class
AddIndexMergeRequestDiffsOnMergeRequestId
<
ActiveRecord
::
Migration
def
change
add_index
:merge_request_diffs
,
:merge_request_id
,
unique:
true
end
end
db/schema.rb
View file @
93bc67ab
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
20140
214102325
)
do
ActiveRecord
::
Schema
.
define
(
version:
20140
304005354
)
do
create_table
"broadcast_messages"
,
force:
true
do
|
t
|
t
.
text
"message"
,
null:
false
...
...
@@ -114,6 +114,8 @@ ActiveRecord::Schema.define(version: 20140214102325) do
t
.
datetime
"updated_at"
end
add_index
"merge_request_diffs"
,
[
"merge_request_id"
],
name:
"index_merge_request_diffs_on_merge_request_id"
,
unique:
true
,
using: :btree
create_table
"merge_requests"
,
force:
true
do
|
t
|
t
.
string
"target_branch"
,
null:
false
t
.
string
"source_branch"
,
null:
false
...
...
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