summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-25 10:44:29 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-25 10:44:29 +0200
commit136316a92d143e672ee03fe0f6ef078cab8ed21c (patch)
tree82e19543bbf0a15d14a22dce426978cd5f9a048d /db
parent44013827988cb18d7c3b504f001256388da71abf (diff)
downloadgitlab-ce-136316a92d143e672ee03fe0f6ef078cab8ed21c.tar.gz
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", "")