migrate milestones with nil state

This commit is contained in:
Dmitriy Zaporozhets 2013-04-16 20:00:30 +03:00
parent 211c433cd8
commit 0715abaf24
1 changed files with 4 additions and 0 deletions

View File

@ -0,0 +1,4 @@
desc "GITLAB | Migrate Milestones"
task migrate_milestones: :environment do
Milestone.where(state: nil).update_all(state: 'active')
end