create relations directly

pull/10926/head
ulferts 2 years ago
parent 6a27c7c938
commit 9f62f79b67
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 2
      app/seeders/demo_data/work_package_seeder.rb

@ -197,7 +197,7 @@ module DemoData
end
def create_relation(to:, from:, type:)
from.relations.create!(from:, to:, relation_type: type)
Relation.create!(from:, to:, relation_type: type)
end
def calculate_start_date(days_ahead)

Loading…
Cancel
Save