From 0715abaf24aeaf4ed66d61d7978be04008d25070 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 16 Apr 2013 20:00:30 +0300 Subject: [PATCH] migrate milestones with nil state --- lib/tasks/migrate/migrate_milestones.rake | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 lib/tasks/migrate/migrate_milestones.rake 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