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
e97ce957
Commit
e97ce957
authored
Dec 31, 2019
by
Alexandru Croitor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a newline between table creation and add_index for readability
parent
21c2e88e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
db/migrate/20191205212923_support_multiple_milestones_for_issues.rb
.../20191205212923_support_multiple_milestones_for_issues.rb
+1
-0
db/migrate/20191205212924_support_multiple_milestones_for_merge_requests.rb
...5212924_support_multiple_milestones_for_merge_requests.rb
+1
-0
No files found.
db/migrate/20191205212923_support_multiple_milestones_for_issues.rb
View file @
e97ce957
...
...
@@ -8,6 +8,7 @@ class SupportMultipleMilestonesForIssues < ActiveRecord::Migration[5.2]
t
.
references
:issue
,
foreign_key:
{
on_delete: :cascade
},
index:
{
unique:
true
},
null:
false
t
.
references
:milestone
,
foreign_key:
{
on_delete: :cascade
},
index:
true
,
null:
false
end
add_index
:issue_milestones
,
[
:issue_id
,
:milestone_id
],
unique:
true
end
end
db/migrate/20191205212924_support_multiple_milestones_for_merge_requests.rb
View file @
e97ce957
...
...
@@ -8,6 +8,7 @@ class SupportMultipleMilestonesForMergeRequests < ActiveRecord::Migration[5.2]
t
.
references
:merge_request
,
foreign_key:
{
on_delete: :cascade
},
index:
{
unique:
true
},
null:
false
t
.
references
:milestone
,
foreign_key:
{
on_delete: :cascade
},
index:
true
,
null:
false
end
add_index
:merge_request_milestones
,
[
:merge_request_id
,
:milestone_id
],
name:
'index_mrs_milestones_on_mr_id_and_milestone_id'
,
unique:
true
end
end
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