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
f2edb72e
Commit
f2edb72e
authored
Jan 16, 2020
by
Lee Tickett
Committed by
Andreas Brandl
Jan 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove milestone_id from epics table 2/3
parent
99a53fb5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
4 deletions
+19
-4
app/models/epic.rb
app/models/epic.rb
+1
-1
changelogs/unreleased/remove_milestone_id_from_epics2.yml
changelogs/unreleased/remove_milestone_id_from_epics2.yml
+5
-0
db/post_migrate/20191114204343_remove_milestone_id_from_epics.rb
..._migrate/20191114204343_remove_milestone_id_from_epics.rb
+13
-0
db/schema.rb
db/schema.rb
+0
-3
No files found.
app/models/epic.rb
View file @
f2edb72e
...
...
@@ -5,7 +5,7 @@
class
Epic
<
ApplicationRecord
include
IgnorableColumns
ignore_column
:milestone_id
,
remove_after:
'20
19-12-15'
,
remove_with:
'12.7
'
ignore_column
:milestone_id
,
remove_after:
'20
20-02-01'
,
remove_with:
'12.8
'
def
self
.
link_reference_pattern
nil
...
...
changelogs/unreleased/remove_milestone_id_from_epics2.yml
0 → 100644
View file @
f2edb72e
---
title
:
Remove milestone_id from epics
merge_request
:
20539
author
:
Lee Tickett
type
:
other
db/post_migrate/20191114204343_remove_milestone_id_from_epics.rb
0 → 100644
View file @
f2edb72e
# frozen_string_literal: true
class
RemoveMilestoneIdFromEpics
<
ActiveRecord
::
Migration
[
5.2
]
DOWNTIME
=
false
def
up
remove_column
:epics
,
:milestone_id
end
def
down
add_column
:epics
,
:milestone_id
,
:integer
end
end
db/schema.rb
View file @
f2edb72e
...
...
@@ -1538,7 +1538,6 @@ ActiveRecord::Schema.define(version: 2020_01_14_180546) do
end
create_table
"epics"
,
id: :serial
,
force: :cascade
do
|
t
|
t
.
integer
"milestone_id"
t
.
integer
"group_id"
,
null:
false
t
.
integer
"author_id"
,
null:
false
t
.
integer
"assignee_id"
...
...
@@ -1577,7 +1576,6 @@ ActiveRecord::Schema.define(version: 2020_01_14_180546) do
t
.
index
[
"end_date"
],
name:
"index_epics_on_end_date"
t
.
index
[
"group_id"
],
name:
"index_epics_on_group_id"
t
.
index
[
"iid"
],
name:
"index_epics_on_iid"
t
.
index
[
"milestone_id"
],
name:
"index_milestone"
t
.
index
[
"parent_id"
],
name:
"index_epics_on_parent_id"
t
.
index
[
"start_date"
],
name:
"index_epics_on_start_date"
t
.
index
[
"start_date_sourcing_epic_id"
],
name:
"index_epics_on_start_date_sourcing_epic_id"
,
where:
"(start_date_sourcing_epic_id IS NOT NULL)"
...
...
@@ -4590,7 +4588,6 @@ ActiveRecord::Schema.define(version: 2020_01_14_180546) do
add_foreign_key
"epics"
,
"epics"
,
column:
"start_date_sourcing_epic_id"
,
name:
"fk_9d480c64b2"
,
on_delete: :nullify
add_foreign_key
"epics"
,
"milestones"
,
column:
"due_date_sourcing_milestone_id"
,
name:
"fk_3c1fd1cccc"
,
on_delete: :nullify
add_foreign_key
"epics"
,
"milestones"
,
column:
"start_date_sourcing_milestone_id"
,
name:
"fk_1fbed67632"
,
on_delete: :nullify
add_foreign_key
"epics"
,
"milestones"
,
on_delete: :nullify
add_foreign_key
"epics"
,
"namespaces"
,
column:
"group_id"
,
name:
"fk_f081aa4489"
,
on_delete: :cascade
add_foreign_key
"epics"
,
"users"
,
column:
"assignee_id"
,
name:
"fk_dccd3f98fc"
,
on_delete: :nullify
add_foreign_key
"epics"
,
"users"
,
column:
"author_id"
,
name:
"fk_3654b61b03"
,
on_delete: :cascade
...
...
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