Commit 8536dedb authored by Stan Hu's avatar Stan Hu

Fix seed_fu failure with inserting milestones into test DB

Milestones were not being saved due to "invalid state" validation errors
parent 6ca5d6cf
...@@ -4,7 +4,7 @@ Gitlab::Seeder.quiet do ...@@ -4,7 +4,7 @@ Gitlab::Seeder.quiet do
milestone_params = { milestone_params = {
title: "v#{i}.0", title: "v#{i}.0",
description: FFaker::Lorem.sentence, description: FFaker::Lorem.sentence,
state: ['opened', 'closed'].sample, state: [:active, :closed].sample,
} }
milestone = Milestones::CreateService.new( milestone = Milestones::CreateService.new(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment