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
c2c2628b
Commit
c2c2628b
authored
Apr 24, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create related_issues table
parent
615075e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
db/migrate/20170424131911_create_related_issues_table.rb
db/migrate/20170424131911_create_related_issues_table.rb
+16
-0
db/schema.rb
db/schema.rb
+9
-0
No files found.
db/migrate/20170424131911_create_related_issues_table.rb
0 → 100644
View file @
c2c2628b
class
CreateRelatedIssuesTable
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
create_table
:related_issues
do
|
t
|
t
.
integer
:issue_id
,
null:
false
t
.
integer
:related_issue_id
,
null:
false
t
.
timestamps
null:
true
end
add_index
:related_issues
,
[
:issue_id
,
:related_issue_id
],
unique:
true
end
end
db/schema.rb
View file @
c2c2628b
...
...
@@ -1304,6 +1304,15 @@ ActiveRecord::Schema.define(version: 20170602003304) do
add_index
"redirect_routes"
,
[
"path"
],
name:
"index_redirect_routes_on_path_text_pattern_ops"
,
using: :btree
,
opclasses:
{
"path"
=>
"varchar_pattern_ops"
}
add_index
"redirect_routes"
,
[
"source_type"
,
"source_id"
],
name:
"index_redirect_routes_on_source_type_and_source_id"
,
using: :btree
create_table
"related_issues"
,
force: :cascade
do
|
t
|
t
.
integer
"issue_id"
,
null:
false
t
.
integer
"related_issue_id"
,
null:
false
t
.
datetime
"created_at"
t
.
datetime
"updated_at"
end
add_index
"related_issues"
,
[
"issue_id"
,
"related_issue_id"
],
name:
"index_related_issues_on_issue_id_and_related_issue_id"
,
unique:
true
,
using: :btree
create_table
"releases"
,
force: :cascade
do
|
t
|
t
.
string
"tag"
t
.
text
"description"
...
...
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