Commit 5c9127ea authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #6729 from hiroponz/fix-seed-fu

Fix rake db:seed_fu ENV=development
parents fd8a165d 0ed2f8de
ActiveRecord::Base.observers.disable(:milestone_observer)
Milestone.seed(:id, [ Milestone.seed(:id, [
{ id: 1, project_id: 1, title: 'v' + Faker::Address.zip_code }, { id: 1, project_id: 1, title: 'v' + Faker::Address.zip_code },
{ id: 2, 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| ...@@ -16,3 +18,5 @@ Milestone.all.map do |ml|
ml.set_iid ml.set_iid
ml.save ml.save
end end
ActiveRecord::Base.observers.enable(:milestone_observer)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment