summaryrefslogtreecommitdiff
path: root/db/fixtures
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-05 14:30:50 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-05-05 14:30:50 +0300
commit4f670fbe9c83bdf20e1a58d3166848ab6d453b6c (patch)
treea4ce0144ac4bf007c02d3e8315fd084598f66abf /db/fixtures
parentf09a1ef81d787962e160af7e56d08bc23af52dd1 (diff)
downloadgitlab-ce-4f670fbe9c83bdf20e1a58d3166848ab6d453b6c.tar.gz
Create seed projects with different visibility
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/development/04_project.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/fixtures/development/04_project.rb b/db/fixtures/development/04_project.rb
index 9303ab93300..164bb637809 100644
--- a/db/fixtures/development/04_project.rb
+++ b/db/fixtures/development/04_project.rb
@@ -40,7 +40,8 @@ Gitlab::Seeder.quiet do
import_url: url,
namespace_id: group.id,
name: project_path.titleize,
- description: Faker::Lorem.sentence
+ description: Faker::Lorem.sentence,
+ visibility_level: Gitlab::VisibilityLevel.values.sample
}
project = Projects::CreateService.new(User.first, params).execute