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
fa2273cf
Commit
fa2273cf
authored
Aug 01, 2018
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix migration to cover end_date nil cases
parent
dfe844e9
Changes
1
Hide 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 @
fa2273cf
...
...
@@ -56,7 +56,7 @@ class UpdateEpicDatesFromMilestones < ActiveRecord::Migration
end
def
up
Epic
.
where
(
start_date:
nil
).
find_each
do
|
epic
|
Epic
.
where
(
'start_date IS NULL OR end_date IS NULL'
).
find_each
do
|
epic
|
epic
.
update_dates
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