diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-16 20:00:30 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-16 20:00:30 +0300 |
commit | 0715abaf24aeaf4ed66d61d7978be04008d25070 (patch) | |
tree | b6a8186646e10780d2f830a13f1965b1bda1830b /lib/tasks/migrate | |
parent | 211c433cd89ddc49b1f8c3ef6ba7bc366428a851 (diff) | |
download | gitlab-ce-0715abaf24aeaf4ed66d61d7978be04008d25070.tar.gz |
migrate milestones with nil state
Diffstat (limited to 'lib/tasks/migrate')
-rw-r--r-- | lib/tasks/migrate/migrate_milestones.rake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/migrate/migrate_milestones.rake b/lib/tasks/migrate/migrate_milestones.rake new file mode 100644 index 00000000000..14c70a3d1c7 --- /dev/null +++ b/lib/tasks/migrate/migrate_milestones.rake @@ -0,0 +1,4 @@ +desc "GITLAB | Migrate Milestones" +task migrate_milestones: :environment do + Milestone.where(state: nil).update_all(state: 'active') +end |