summaryrefslogtreecommitdiff
path: root/db/fixtures
diff options
context:
space:
mode:
authorSijmen Mulder <sjmulder@gmail.com>2013-02-19 22:14:28 +0100
committerSijmen Mulder <sjmulder@gmail.com>2013-02-19 22:14:28 +0100
commit3a45e6010f6dde8f5047fc82283f0ef3c0f44712 (patch)
treecf49d2f73b2d3dd25f8853ef55ac242960896379 /db/fixtures
parent6bc9249b38c060c7f67e40b7d8a9ce5f2f351457 (diff)
downloadgitlab-ce-3a45e6010f6dde8f5047fc82283f0ef3c0f44712.tar.gz
Update seeds for state columns
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/development/09_issues.rb2
-rw-r--r--db/fixtures/development/10_merge_requests.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/development/09_issues.rb b/db/fixtures/development/09_issues.rb
index 8978db4742b..cd9b2b3e456 100644
--- a/db/fixtures/development/09_issues.rb
+++ b/db/fixtures/development/09_issues.rb
@@ -16,7 +16,7 @@ Gitlab::Seeder.quiet do
project_id: project.id,
author_id: user_id,
assignee_id: user_id,
- closed: [true, false].sample,
+ state: ['opened', 'closed'].sample,
milestone: project.milestones.sample,
title: Faker::Lorem.sentence(6)
}])
diff --git a/db/fixtures/development/10_merge_requests.rb b/db/fixtures/development/10_merge_requests.rb
index 9904b4a1505..6d111b26c53 100644
--- a/db/fixtures/development/10_merge_requests.rb
+++ b/db/fixtures/development/10_merge_requests.rb
@@ -17,7 +17,7 @@ Gitlab::Seeder.quiet do
project_id: project.id,
author_id: user_id,
assignee_id: user_id,
- closed: [true, false].sample,
+ state: ['opened', 'closed'].sample,
milestone: project.milestones.sample,
title: Faker::Lorem.sentence(6)
}])