don't seed demo project if a project exists

pull/3825/head
Jens Ulferts 9 years ago
parent 3483c4d3fa
commit 3c84bd599f
  1. 4
      app/seeders/demo_data/project_seeder.rb

@ -56,6 +56,10 @@ module DemoData
end end
end end
def applicable?
Project.count == 0
end
def project_data_seeders(project) def project_data_seeders(project)
seeders = [ seeders = [
DemoData::CustomFieldSeeder, DemoData::CustomFieldSeeder,

Loading…
Cancel
Save