aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/seeds.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/seeds.rb b/db/seeds.rb
index 8acfc7e01..6673c1239 100644
--- a/db/seeds.rb
+++ b/db/seeds.rb
@@ -31,9 +31,10 @@ end
line_referential.lines.find_or_create_by name: "Test #{n}"
end
-OfferWorkbench.find_or_create_by(name: "Gestion de l'offre", organisation: stif)
+offer_workbench = OfferWorkbench.find_or_create_by(name: "Gestion de l'offre", organisation: stif)
stif.referentials.find_or_create_by(slug: "test", name: "Test") do |referential|
+ referential.offer_workbench = offer_workbench
referential.line_referential = line_referential
referential.stop_area_referential = stop_area_referential
end