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
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
db/migrate/20160824124900_add_table_issue_metrics.rb
db/migrate/20160824124900_add_table_issue_metrics.rb
+1
-1
db/migrate/20160825052008_add_table_merge_request_metrics.rb
db/migrate/20160825052008_add_table_merge_request_metrics.rb
+1
-1
db/migrate/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
...
@@ -25,7 +25,7 @@ class AddTableIssueMetrics < ActiveRecord::Migration
def
change
def
change
create_table
:issue_metrics
do
|
t
|
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_mentioned_in_commit_at'
t
.
datetime
'first_associated_with_milestone_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
...
@@ -25,7 +25,7 @@ class AddTableMergeRequestMetrics < ActiveRecord::Migration
def
change
def
change
create_table
:merge_request_metrics
do
|
t
|
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_started_at'
t
.
datetime
'latest_build_finished_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
...
@@ -25,8 +25,8 @@ class CreateMergeRequestsClosingIssues < ActiveRecord::Migration
def
change
def
change
create_table
:merge_requests_closing_issues
do
|
t
|
create_table
:merge_requests_closing_issues
do
|
t
|
t
.
references
:merge_request
,
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:
true
,
index:
true
,
dependent: :delet
e
,
null:
false
t
.
references
:issue
,
foreign_key:
{
on_delete: :cascade
},
index:
tru
e
,
null:
false
t
.
timestamps
null:
false
t
.
timestamps
null:
false
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