Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-25 12:44:29 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-25 12:44:29 +0400
commit136316a92d143e672ee03fe0f6ef078cab8ed21c (patch)
tree82e19543bbf0a15d14a22dce426978cd5f9a048d /db
parent44013827988cb18d7c3b504f001256388da71abf (diff)
Fix group ownership for dev seeds
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db')
-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 50726a5a51e..5cb19171abd 100644
--- a/db/fixtures/development/04_project.rb
+++ b/db/fixtures/development/04_project.rb
@@ -27,8 +27,9 @@ project_urls.each_with_index do |url, i|
path: group_path
)
group.description = Faker::Lorem.sentence
- group.owner = User.first
group.save
+
+ group.add_owner(User.first)
end
project_path.gsub!(".git", "")