summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorHiroyuki Sato <hiroyuki_sato@spiber.jp>2014-04-09 11:02:45 +0900
committerHiroyuki Sato <hiroyuki_sato@spiber.jp>2014-04-09 11:02:45 +0900
commit0ed2f8ded9a33a9d6741c32a706a2f9d087391b4 (patch)
tree1a7b61ab179bd09f43079a63b79e1fb95aa367ef /db
parent9a02e27b84589856b41e171493aa441add497ac1 (diff)
downloadgitlab-ce-0ed2f8ded9a33a9d6741c32a706a2f9d087391b4.tar.gz
Fix rake db:seed_fu ENV=development
This problem was reported on https://gitlab.com/gitlab-org/cookbook-gitlab/issues/46
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/07_milestones.rb4
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)