Commit 5c9127ea297bebf978005380d553240f22a9e0c4
Exists in
spb-stable
and in
3 other branches
Merge pull request #6729 from hiroponz/fix-seed-fu
Fix rake db:seed_fu ENV=development
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) | ... | ... |