Commit 136316a92d143e672ee03fe0f6ef078cab8ed21c
1 parent
44013827
Exists in
spb-stable
and in
3 other branches
Fix group ownership for dev seeds
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
db/fixtures/development/04_project.rb
@@ -27,8 +27,9 @@ project_urls.each_with_index do |url, i| | @@ -27,8 +27,9 @@ project_urls.each_with_index do |url, i| | ||
27 | path: group_path | 27 | path: group_path |
28 | ) | 28 | ) |
29 | group.description = Faker::Lorem.sentence | 29 | group.description = Faker::Lorem.sentence |
30 | - group.owner = User.first | ||
31 | group.save | 30 | group.save |
31 | + | ||
32 | + group.add_owner(User.first) | ||
32 | end | 33 | end |
33 | 34 | ||
34 | project_path.gsub!(".git", "") | 35 | project_path.gsub!(".git", "") |