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
8fbc88b7
Commit
8fbc88b7
authored
Jul 31, 2018
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration to work with existing end_date column
parent
e23ee67a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ee/db/post_migrate/20180713171825_update_epic_dates_from_milestones.rb
...grate/20180713171825_update_epic_dates_from_milestones.rb
+1
-1
No files found.
ee/db/post_migrate/20180713171825_update_epic_dates_from_milestones.rb
View file @
8fbc88b7
...
...
@@ -16,7 +16,7 @@ class UpdateEpicDatesFromMilestones < ActiveRecord::Migration
self
.
start_date
=
start_date_is_fixed?
?
start_date_fixed
:
milestone_data
[
:start_date
]
self
.
start_date_sourcing_milestone_id
=
milestone_data
[
:start_date_sourcing_milestone_id
]
self
.
due
_date
=
due_date_is_fixed?
?
due_date_fixed
:
milestone_data
[
:due_date
]
self
.
end
_date
=
due_date_is_fixed?
?
due_date_fixed
:
milestone_data
[
:due_date
]
self
.
due_date_sourcing_milestone_id
=
milestone_data
[
:due_date_sourcing_milestone_id
]
save
if
changed?
...
...
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