提交 c83004a0 编写于 作者: M Marin Jankovski

Remove milestone observer from db fixture.

上级 e2552475
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 },
......@@ -18,5 +16,3 @@ Milestone.all.map do |ml|
ml.set_iid
ml.save
end
ActiveRecord::Base.observers.enable(:milestone_observer)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册