Commit 0ed2f8ded9a33a9d6741c32a706a2f9d087391b4
1 parent
9a02e27b
Exists in
spb-stable
and in
3 other branches
Fix rake db:seed_fu ENV=development
This problem was reported on https://gitlab.com/gitlab-org/cookbook-gitlab/issues/46
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
db/fixtures/development/07_milestones.rb
1 | +ActiveRecord::Base.observers.disable(:milestone_observer) | |
2 | + | |
1 | 3 | Milestone.seed(:id, [ |
2 | 4 | { id: 1, project_id: 1, title: 'v' + Faker::Address.zip_code }, |
3 | 5 | { id: 2, project_id: 1, title: 'v' + Faker::Address.zip_code }, |
... | ... | @@ -16,3 +18,5 @@ Milestone.all.map do |ml| |
16 | 18 | ml.set_iid |
17 | 19 | ml.save |
18 | 20 | end |
21 | + | |
22 | +ActiveRecord::Base.observers.enable(:milestone_observer) | ... | ... |