BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
8747f29d
Commit
8747f29d
authored
Sep 20, 2016
by
Timothy Andrew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix `ON DELETE CASCADE` migrations.
Incorrect syntax.
parent
9691d7e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
20160824124900_add_table_issue_metrics.rb
db/migrate/20160824124900_add_table_issue_metrics.rb
+1
-1
20160825052008_add_table_merge_request_metrics.rb
db/migrate/20160825052008_add_table_merge_request_metrics.rb
+1
-1
20160915042921_create_merge_requests_closing_issues.rb
...te/20160915042921_create_merge_requests_closing_issues.rb
+2
-2
No files found.
db/migrate/20160824124900_add_table_issue_metrics.rb
View file @
8747f29d
...
...
@@ -25,7 +25,7 @@ class AddTableIssueMetrics < ActiveRecord::Migration
def
change
create_table
:issue_metrics
do
|
t
|
t
.
references
:issue
,
index:
{
name:
"index_issue_metrics"
},
foreign_key:
true
,
dependent: :delete
,
null:
false
t
.
references
:issue
,
index:
{
name:
"index_issue_metrics"
},
foreign_key:
{
on_delete: :cascade
}
,
null:
false
t
.
datetime
'first_mentioned_in_commit_at'
t
.
datetime
'first_associated_with_milestone_at'
...
...
db/migrate/20160825052008_add_table_merge_request_metrics.rb
View file @
8747f29d
...
...
@@ -25,7 +25,7 @@ class AddTableMergeRequestMetrics < ActiveRecord::Migration
def
change
create_table
:merge_request_metrics
do
|
t
|
t
.
references
:merge_request
,
index:
{
name:
"index_merge_request_metrics"
},
foreign_key:
true
,
dependent: :delete
,
null:
false
t
.
references
:merge_request
,
index:
{
name:
"index_merge_request_metrics"
},
foreign_key:
{
on_delete: :cascade
}
,
null:
false
t
.
datetime
'latest_build_started_at'
t
.
datetime
'latest_build_finished_at'
...
...
db/migrate/20160915042921_create_merge_requests_closing_issues.rb
View file @
8747f29d
...
...
@@ -25,8 +25,8 @@ class CreateMergeRequestsClosingIssues < ActiveRecord::Migration
def
change
create_table
:merge_requests_closing_issues
do
|
t
|
t
.
references
:merge_request
,
foreign_key:
true
,
index:
true
,
dependent: :delet
e
,
null:
false
t
.
references
:issue
,
foreign_key:
true
,
index:
true
,
dependent: :delet
e
,
null:
false
t
.
references
:merge_request
,
foreign_key:
{
on_delete: :cascade
},
index:
tru
e
,
null:
false
t
.
references
:issue
,
foreign_key:
{
on_delete: :cascade
},
index:
tru
e
,
null:
false
t
.
timestamps
null:
false
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