diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-09 21:23:25 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-04-09 21:23:25 +0300 |
commit | 5c9127ea297bebf978005380d553240f22a9e0c4 (patch) | |
tree | 51c43461cc4963e0c07cfc93d4808845b2f3c6cd | |
parent | fd8a165df70642efe44c5735b9c5b12da17d7b34 (diff) | |
parent | 0ed2f8ded9a33a9d6741c32a706a2f9d087391b4 (diff) | |
download | gitlab-ce-5c9127ea297bebf978005380d553240f22a9e0c4.tar.gz |
Merge pull request #6729 from hiroponz/fix-seed-fu
Fix rake db:seed_fu ENV=development
-rw-r--r-- | db/fixtures/development/07_milestones.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/fixtures/development/07_milestones.rb b/db/fixtures/development/07_milestones.rb index 6fe7e246770..72e6b3ad3d6 100644 --- a/db/fixtures/development/07_milestones.rb +++ b/db/fixtures/development/07_milestones.rb @@ -1,3 +1,5 @@ +ActiveRecord::Base.observers.disable(:milestone_observer) + Milestone.seed(:id, [ { id: 1, project_id: 1, title: 'v' + Faker::Address.zip_code }, { id: 2, project_id: 1, title: 'v' + Faker::Address.zip_code }, @@ -16,3 +18,5 @@ Milestone.all.map do |ml| ml.set_iid ml.save end + +ActiveRecord::Base.observers.enable(:milestone_observer) |